+ 1
Muda=5000 : then end)
If daddy is > then muda : then end) ...is that a program?
10 Answers
0
This is not right
What u need to help u ?
0
Would that if statement work?
0
No that if statement will not work.
It is not a English ok it is a programing language and we have certain rules and regulations to write it
0
So if i said
5000=Muda
7500=Daddy
If int(Muda)< int(Daddy): then
print(Muda )is bigger then Daddy :)
If int(Daddy)>int(Muda): then
Print(Daddy)did Muda
0
Would it be something like that?
0
Muda=5000
Daddy=7500
If Muda < Daddy:
print("Muda is bigger then Daddy :")
If Daddy > Muda :
Print("Daddy did Muda")
This is the correct way ok . You may also use else statement
https://www.sololearn.com/Course/JUMP_LINK__&&__Python__&&__JUMP_LINK/?ref=app
you should complete this course. it will help you to understand basics of python
0
Thank you i am very new python...Thank you for helping me with this
0
Hey DeadEye UNT your question is a bit ambiguous. I could not understand it properly. Hope following codes will help you.
#code 1
a, b = 1, 2
#It will print 2
print(a) if a>b else print(b)
#code 2
a, b = 3, 4
#It won't print anything
print(a) if a>b else None