0

If else not working on my code. Why?

number = int( input()) #your code goes here if number == (1,3,5,7,9): print (number*3) elif number == (2,4,6,8,10): print(number *2) Im not getting input, what is wrong?:(

22nd Nov 2020, 11:55 AM
Carlos Eduardo Marquez
Carlos Eduardo Marquez - avatar
2 Respostas
+ 1
Thank you Ninja 🤣😁
22nd Nov 2020, 12:08 PM
Carlos Eduardo Marquez
Carlos Eduardo Marquez - avatar
0
And i forgot to ask if there is a way to keep the even or odds number going infinitely?
22nd Nov 2020, 12:03 PM
Carlos Eduardo Marquez
Carlos Eduardo Marquez - avatar