Hello,
First day on Python :)
I was looking to create a simple cli sample menu for my Ubuntu 17.10 and default Python 3.6.3 and i end up to this one:
Any help?
Thank you
First day on Python :)
I was looking to create a simple cli sample menu for my Ubuntu 17.10 and default Python 3.6.3 and i end up to this one:
#!/usr/bin/env python def menu(): print ("Welcome, \n 1. Print Hello \n 2. Print World \n 3. Print Python \n 4. Print Hello World") choice = input() if choice == "1": print("Hello") menu() if choice == "2": print("World") menu() if choice == "3": print("Python") menu() if choice == "4": print("Hello World") menu() menu()When i run it from terminal the menu appear with no issues but when i add a selection it quits to command prompt with no errors :(
Any help?
Thank you