I have an homework | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

I have an homework

there is some rules and i should write codes with if else code words. who can help me?

7th Mar 2017, 1:32 PM
Abdullah Pala
Abdullah Pala - avatar
2 Réponses
+ 6
x = 'woo' if you_passed: print(x) else: print(x + 'ps')
6th Apr 2018, 6:25 PM
Fox
Fox - avatar
0
a = 5 if a < 0: print('Negative number') else: print('Positive number')
12th Apr 2018, 5:53 PM
セ ービン
セ ービン - avatar