Advertisement
makispaiktis

Wedding List

Sep 25th, 2019 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. print("************************************************")
  2. print("************************************************")
  3. weddinglist = []
  4. name = "";                                      # Initialize the variable "name" (string)
  5. counter = 0
  6. while name != "στοπ":
  7.     counter += 1
  8.     name = input("Όνομα " + str(counter) +": ")
  9.     weddinglist.append(name)
  10.  
  11. weddinglist.sort()
  12. print()
  13. print()
  14. for i in weddinglist:
  15.     print(i)
  16.  
  17. print("************************************************")
  18. print("************************************************")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement