Korr. vergessenes int
This commit is contained in:
parent
3bc5d62f70
commit
eca7df4c2f
1 changed files with 2 additions and 2 deletions
4
hallo.py
4
hallo.py
|
|
@ -1,11 +1,11 @@
|
|||
print("Hello World!")
|
||||
print(3+5)
|
||||
name=input("Wie heißt du?")
|
||||
alter=input("Wie alt bist du")
|
||||
alter=int(input("Wie alt bist du"))
|
||||
|
||||
print(f"Ich heiße {name} und bin {alter} Jahre alt.")
|
||||
|
||||
if alter >= 18:
|
||||
if int(alter) >= 18:
|
||||
print("Du bist offiziell aus den Jugendstrafrecht raus, außer die Richterin hat erbarmen")
|
||||
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue