Advertisement
fvasconcelos

Se não for 1, 2, 3 ou nada, quero que torne a perguntar

Aug 13th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. def choice_menu(choice, song):
  2.     prompt = "Edit the filename: "
  3.  
  4.     if choice == '2':
  5.         renaming.rlinput(prompt, song)
  6.     elif choice == '3':
  7.         print("Skipping " + boldChar + greenChar + song + resetChar + "...")
  8.         time.sleep(1)
  9.     elif choice == '':
  10.         print("Leaving Pollyanna...")
  11.         sys.exit()
  12.     else:
  13.         print("\nWrong option. Try again: ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement