+ 1

Muda=5000 : then end)

If daddy is > then muda : then end) ...is that a program?

2nd Jun 2020, 7:35 AM
DeadEye UNT
DeadEye UNT - avatar
10 Answers
0
This is not right What u need to help u ?
2nd Jun 2020, 7:39 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
Would that if statement work?
2nd Jun 2020, 7:40 AM
DeadEye UNT
DeadEye UNT - avatar
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
2nd Jun 2020, 7:52 AM
Ayush Kumar
Ayush Kumar - avatar
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
2nd Jun 2020, 7:58 AM
DeadEye UNT
DeadEye UNT - avatar
0
Would it be something like that?
2nd Jun 2020, 7:58 AM
DeadEye UNT
DeadEye UNT - avatar
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
2nd Jun 2020, 8:01 AM
Ayush Kumar
Ayush Kumar - avatar
0
Thank you i am very new python...Thank you for helping me with this
2nd Jun 2020, 8:12 AM
DeadEye UNT
DeadEye UNT - avatar
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
3rd Jun 2020, 10:35 PM
Sharique