7 lines
340 B
Plaintext
7 lines
340 B
Plaintext
vorname = input (str("Vorname:"))
|
|
nachname = input (str("Nachname:"))
|
|
geschlecht = input (str("Geschlecht (m/w)"))
|
|
alter = input(str("Alter:"))
|
|
if alter >= 18: if geschlecht = m: print("Hallo Herr "+nachname) anrede = "Ihnen" anrede2 =
|
|
if alter >= 18: if geschlecht = w: print("Hallo Frau "+nachname)
|
|
if alter <= 18: print("Hallo "+vorname) |