+ 1

Like if statements?

var isAdult = (age < 18) ? "Too young": "Old enough"; so this would be writen with if statements in python right?

10th Jul 2017, 4:22 AM
dez
dez - avatar
5 odpowiedzi
+ 6
yeah, var isAdult; if(age < 18) isAdult = "Too young"; else isAdult = "Old enough";
10th Jul 2017, 4:39 AM
Karl T.
Karl T. - avatar
+ 4
Nope, Im in Canada. (first all-time here)
10th Jul 2017, 4:44 AM
Karl T.
Karl T. - avatar
+ 4
lol
10th Jul 2017, 4:52 AM
Karl T.
Karl T. - avatar
- 3
cool! Are you the same guy who's #2 in the US?
10th Jul 2017, 4:43 AM
dez
dez - avatar
- 3
All the best programers are terminators. Skynet!!!!! tooh tooh tooh toohtooh... tooh tooh tooh toohtooh... TOOH TOOH TOOH TOOHTOOH... TOOH TOOH TOOH TOOHTOOH
10th Jul 2017, 4:47 AM
dez
dez - avatar