What the wrong in this cod | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What the wrong in this cod

hige livil = eval(input('Enter your livil') low livil = eval(input('enter your low livil') your livil = hige livil * low livil +50 if hige livil > low livil: print('paas') else: print('fail') print(your livil,'you pass')

6th Oct 2019, 8:06 AM
Mansor Ty
Mansor Ty - avatar
1 Answer
0
Check each variables' format, put the else inline with the if statement.
6th Oct 2019, 8:22 AM
rodwynnejones
rodwynnejones - avatar