Skip to content

Instantly share code, notes, and snippets.

View kantale's full-sized avatar

Alexandros Kanterakis kantale

View GitHub Profile
@kantale
kantale / lesson_3.ipynb
Created April 8, 2019 16:49
lesson_TEI_8_apr_2019
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_2.ipynb
Created April 1, 2019 17:04
TEI lesson_2 1 April 2019
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_1.ipynb
Created March 18, 2019 18:05
lesson_1 18 March 2019
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_1.ipynb
Created March 18, 2019 14:40
description
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / assignment_4.md
Last active March 5, 2019 10:10
4th assignment python

Άσκηση 1

Δίνεται η παρακάτω λίστα με 100 αριθμούς:

l = [0, -1, 3, 3, 2, -2, -4, 4, 2, -1, -2, 3, 2, -1, 0, 3, 5, -3, 5, -3, 
-4, -4, 5, -5, -4, 2, 1, 1, -1, 1, 5, 5, 2, 0, 0, 0, -3, 2, 1, 5, 3, 2, 
2, -5, -2, -3, 1, -5, -4, 3, 3, -5, 2, 0, -2, -1, -1, 1, 2, 3, -3, 4, -2, 
-4, 0, 0, 0, -4, -3, -1, -1, -2, -4, -3, 0, 4, 1, 4, -4, 3, 5, 5, -1, -2, 
0, 3, -1, -2, 3, 5, 2, -3, -2, 1, 1, 5, -4, -5, -5, -3]

Αν αθροίσουμε τα 2 πρώτα στοιχεία το αποτέλεσμα θα είναι 0 + -1= -1 αν αθροίσουμε τα 3 πρώτα το αποτέλεσμα θα είναι 0 + -1 + 3 = 2. Για ποιά τιμή Ν (από το 1 μέχρι το 100), αν αθροίσουμε τα πρώτα Ν στοιχειά του πίνακα, το αποτέλεσμα θα πάρει τη μέγιστη δυνατή τιμή;

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / assignment_3.md
Last active February 24, 2019 09:47
3rd assignment python

Σε αυτό το link: http://people.csail.mit.edu/jasonkb/raw_lexica/greek.raw βρίσκεται μία λίστα με όλες (σχεδόν) τις Eλληνικές λέξεις. Πηγαίνετε σε αυτό το link, περιμένετε να το φορτώσει o browser σας και μετά σώστε το με File --> Save as.. στο αρχείο "greek.raw".

Εναλλακτικά μπορείτε να τρέξετε από linux την παρακάτω εντολή:

wget http://people.csail.mit.edu/jasonkb/raw_lexica/greek.raw

αν δεν δουλέψει αυτό μπορείτε να κάνετε:

curl http://people.csail.mit.edu/jasonkb/raw_lexica/greek.raw > greek.raw
@kantale
kantale / assignment_1.md
Last active February 2, 2019 09:28
1st assignment, python

Γράψτε κώδικα (κατα προτίμηση συναρτήσεις) ο οποίος:

1η άσκηση

έστω οι μεταβλητές:

name = "Mitsos"
age = 45

Ανάλογα με τις τιμές της μεταβλητής, να τυπώνει:

@kantale
kantale / lesson_13_draft.ipynb
Created January 24, 2019 12:07
Πρόχειρες σημειώσεις από το μάθημα python, 13η διάλεξη, 24 Ιανουαρίου 2019
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.