Jan-18-2018, 10:45 PM
(This post was last modified: Jan-18-2018, 10:46 PM by captainflint.)
message="***Welcome to Sehir Online Market***" message2="Please log in by providing your user credentials:" print message,('\n'),message2 users={"ahmet":"sehir123","meryem":"4444"} login=raw_input("Username: ") password=raw_input("Password: ") while True: if (users)[login]==(password): print 'Succesfully loged in !' else: print "Your user name and/or password is not correct. Please try again!" break if True: print "Welcome, ahmet! Please choose one of the following options by entering the corresponding menu number." break message3="Please choose one of the following Services:" select=True while select: print(""" 1. Search for a product 2. See Basket 3. Check Out 4. Logout 5. Exit 0. Return The Menu """) break select=raw_input("Your Choice: ") message4=raw_input("What are you searching for: ") if select=="1": if message4=="Juice" or "juice": print "found 3 similar items:" print(""" 1.grape juice $9 2.orange juice $8 3.apple juice $7 """) message5=raw_input("Please select which item you want to add to your basket (Enter 0 for main menu):") if message4=="3": message6=raw_input("Adding apple juice. Enter Amount: ") if message6=="2": warning="Added apple juice into your Basket" warning2="Going back to menu..." print warning,('\n'),warning2 elif select=="0": print selectı can t return menü.how ı do it ? thanks..