hello.py 355 B

1234567891011121314151617181920
  1. def main():
  2. name = input("Wie heißt du? ")
  3. if name == "Sabina":
  4. print("Falsch!")
  5. return False
  6. else:
  7. print("Hallo " + name + "!")
  8. return True
  9. result = True
  10. # while result:
  11. # result = main()
  12. names = ['Robert', 'Toni', 'Sabina', 'Manuel']
  13. for name in sorted(reversed(names)):
  14. print("Hallo " + name)