Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
- 3

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

1st Apr 2017, 1:48 PM
Oresths Psilos
32 Antworten
1st Apr 2017, 2:26 PM
Shamima Yasmin
+ 15
There should be : after else
1st Apr 2017, 2:35 PM
Shamima Yasmin
+ 14
If you're asking for this, The blank should be replaced by a : (colon)
1st Apr 2017, 1:53 PM
Shamima Yasmin
+ 13
What's the question? Can you elaborate please?
1st Apr 2017, 2:03 PM
Shamima Yasmin
+ 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
+ 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
+ 1
The ans is x = 10 y = 20 if x > y: print("if statement") else: print("else statement")
31st Aug 2018, 2:16 AM
0
can you help me ?
1st Apr 2017, 1:55 PM
Oresths Psilos
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
0
1st Apr 2017, 2:19 PM
Oresths Psilos
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
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
0
x = 10 y = 20 if x > y: print(x) else : print(y)
10th Aug 2018, 8:23 AM
Mark Edge
0
'
2nd Apr 2019, 8:59 AM
Sam
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
0
x = 10 y = 20 if x > y : print("if statement") else: print("else statement")
5th Aug 2019, 3:32 AM
Jacobe Moreta
0
X else:
24th Dec 2019, 6:59 AM