+ 2

Can somebody help me? I want to input procces for second time in my .Py coding

https://code.sololearn.com/cVG4Q9p9Cvxr/?ref=app

12th Jun 2018, 6:16 PM
Lalu oonk
Lalu oonk - avatar
4 Answers
+ 5
I put a while loop in your code. And a third option to quit: choice = 0 saldo=50000 while choice != '3': print ('Choose Choice : ') print ('1.Check Saldo ') print ('2.Transaction ') print ('3.Quit') choice=input('Press 1/2 : ') if choice == '1': print ('youre Saldo is {}'.format (saldo) ) elif choice == '2': get=int(input('Enter u want to get : ')) if get % saldo == 0: t = saldo - get print ('Thank you, get {} and total Saldo is {}'.format(choice , saldo )) else : print ('Sorry ur choice must be higher tan 50.000 ') elif choice == '3': pass else : print ('Sorry ure request doesnt exist ') print ('Thank you for doing business with us') You can test it with this input: 1 2 3000 1 3
12th Jun 2018, 6:35 PM
Paul
Paul - avatar
+ 5
You must input then all at once.
13th Jun 2018, 2:10 AM
Paul
Paul - avatar
+ 1
ohh. thank u so much bro, ure answear so helpfull for my problem. #Sorry my english so bad :)
12th Jun 2018, 7:39 PM
Lalu oonk
Lalu oonk - avatar
+ 1
and one more quest, how to input thats? i mean like i running in vscode, i input 1 then 2..etc. how about editor text in solo learn? is i must input them all when i running first?
12th Jun 2018, 7:52 PM
Lalu oonk
Lalu oonk - avatar