-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcorrection_01_python_basics.txt
More file actions
21 lines (20 loc) · 1022 Bytes
/
Copy pathcorrection_01_python_basics.txt
File metadata and controls
21 lines (20 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Korrektur 01_python_basics.pdf
Seite | Korrektur (richtig bezüglich python3)
_____________________________________________________________
7 | u'\u2B00'
_____________________________________________________________
11 | L[0:2] erzeugt hier [123,'spam']
_____________________________________________________________
12 | L.sort() für gegebene Liste nicht möglich
| (float und int mit String nicht vergleichbar)
_____________________________________________________________
21 | Zeile 8: f=open('data.txt','a')
| Zeile 9: f.write('Cont.\n')
_____________________________________________________________
25 | Zeile 4: x = 'spam'
_____________________________________________________________
Gesamte | print-statements mit Klammern aufrufen, z.B.:
.pdf-Datei | print('shave and a haircut')
| print('whats up?')
| print('run away')
| ...