Programmierung Grundlagen, anhand von Python (2022-04-05 - 2022-04-08)#
Überblick#
Die Kurssprache des Kurses “Programmierung Grundlagen” ist Python; viele der Python-spezifische Elemente werden von hier unterrichtet.
Log#
Tag 1#
Variablen und Datentypen#
Kontrollstrukturen#
Discussion: Flow Charts?#
Which one is more clear?
Tag 2#
-
Explaining
break
: rolling-dice.py
Back to Exercise: Greeting, Depending on Time of Day
Additional feature: repeatedly prompt the user after bad input. For example, when the input for the sex is ‘z’, prompt her again. Do this until a valid sex is input.
Same if hour of day is not in 0-23.