python:eisodos-exodos
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python:eisodos-exodos [2026/05/17 18:35] – [Η εντολή input()] dmakryp | python:eisodos-exodos [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 4. Είσοδος - Έξοδος ====== | ||
| - | {{https:// | ||
| - | |||
| - | **2.5 Είσοδος και Έξοδος** (σύμφωνα με το βιβλίο ΙΕΠ) | ||
| - | |||
| - | Για να επικοινωνούμε με το πρόγραμμα χρησιμοποιούμε δύο βασικές εντολές: | ||
| - | |||
| - | ===== Η εντολή print() ===== | ||
| - | |||
| - | Η `print()` **εμφανίζει** πληροφορίες στην οθόνη (έξοδος). | ||
| - | |||
| - | - Μπορεί να εμφανίσει κείμενο, | ||
| - | - Τα κομμάτια ενώνονται με κόμμα `,` | ||
| - | |||
| - | ===== Η εντολή input() ===== | ||
| - | |||
| - | Η `input()` **παίρνει** πληροφορίες από τον χρήστη (είσοδος). | ||
| - | |||
| - | - Πάντα επιστρέφει **κείμενο** (str). | ||
| - | - Αν θέλουμε αριθμό, | ||
| - | |||
| - | name = input(" | ||
| - | age = int(input(" | ||
| - | favorite = input(" | ||
| - | |||
| - | print(" | ||
| - | print(" | ||
| - | print(" | ||
| - | print(" | ||
| - | print(" | ||
python/eisodos-exodos.1779032146.txt.gz · Last modified: by dmakryp
