Whats wron with this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Whats wron with this code?

trying to make a code were if any other name other than Jerry is inputted, itll continue the order, but if its equal to Jerry, it will just print 'next please.' https://www.sololearn.com/compiler-playground/c5nSXPKALz3S

18th Jun 2023, 8:56 PM
Ronal Castro
1 Answer
+ 4
https://code.sololearn.com/c5nSXPKALz3S TRY This instead... name= input('please tell me your name') price= int(input('\nhow many portions of soup?')) print(f"\n\n{name}") if name != "Jerry": print (f'\nThe total cost is ${int(price*5.90)}') else: print ('Next please!')
19th Jun 2023, 1:08 AM
BroFar
BroFar - avatar