About a answer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

About a answer

how can to solve that x=10 y=20 if x > y _? else please reply me

1st Apr 2017, 1:48 PM
Oresths Psilos
Oresths Psilos - avatar
32 Answers
1st Apr 2017, 2:26 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 15
There should be : after else
1st Apr 2017, 2:35 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 14
If you're asking for this, The blank should be replaced by a : (colon)
1st Apr 2017, 1:53 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 13
What's the question? Can you elaborate please?
1st Apr 2017, 2:03 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 4
x > y ? x : y if this is the question then here "?" and ":" are called Ternary operator. You can think "?" as if statement and ":" as else statement. Reply me if I got your question right. Then others can give better answer.
1st Apr 2017, 2:08 PM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 2
x = 10 y = 20 if x > y print(x) else print(y) // I can still be wrong in guessing your question.
1st Apr 2017, 2:16 PM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 1
The ans is x = 10 y = 20 if x > y: print("if statement") else: print("else statement")
31st Aug 2018, 2:16 AM
Ammar Muhammad Abubakar
Ammar Muhammad Abubakar - avatar
0
can you help me ?
1st Apr 2017, 1:55 PM
Oresths Psilos
Oresths Psilos - avatar
0
fill in the blanks to compare the variables and output the corresponding text x=10 y=20 if x > y _ else
1st Apr 2017, 2:10 PM
Oresths Psilos
Oresths Psilos - avatar
1st Apr 2017, 2:19 PM
Oresths Psilos
Oresths Psilos - avatar
0
that's crazy maybe is bug dunno http://i.imgur.com/aEtuRSM.jpg see and you
1st Apr 2017, 2:29 PM
Oresths Psilos
Oresths Psilos - avatar
0
thanks guys I want to learn language good and and I want to be a good programmer
2nd Apr 2017, 9:31 PM
Oresths Psilos
Oresths Psilos - avatar
0
x = 10 y = 20 if x > y: print(x) else : print(y)
10th Aug 2018, 8:23 AM
Mark Edge
Mark Edge - avatar
0
'
2nd Apr 2019, 8:59 AM
Sam
Sam - avatar
0
if, : , else: ,
9th May 2019, 5:21 AM
Tutul Chandra Sutra Dhar
0
x=10 y=20 ix>y print("if statment") else print("statment")
30th May 2019, 12:28 AM
Ahmed Karam
Ahmed Karam - avatar
0
x = 10 y = 20 if x > y : print("if statement") else: print("else statement")
5th Aug 2019, 3:32 AM
Jacobe Moreta
Jacobe Moreta - avatar
0
X else:
24th Dec 2019, 6:59 AM
olutade timilehin james
0
+ else:
24th Dec 2019, 6:59 AM
olutade timilehin james
0
x = 10 y = 20 If x > y: print("if statement") else: print("else statement") This is the correct answer
26th Dec 2019, 2:51 PM
Sagayasree Z
Sagayasree Z - avatar