1234567891011121314151617181920 |
- def main():
- name = input("Wie heißt du? ")
- if name == "Sabina":
- print("Falsch!")
- return False
- else:
- print("Hallo " + name + "!")
- return True
- result = True
- # while result:
- # result = main()
- names = ['Robert', 'Toni', 'Sabina', 'Manuel']
- for name in sorted(reversed(names)):
- print("Hallo " + name)
|