0

May somebody explain me why isn't it working

int(num) = input("input a number") if num > 5: print("Number is 5") else: if num == 11: print("Number is 11") else: if num == 7: print("Number is 7") else: print("Number isn't 5, 11 or 7")

9th Jul 2016, 11:45 AM
cenovisseur
2 Respuestas
+ 3
Replace first line with num = int(input("input a number")) You're trying to assign value to function
9th Jul 2016, 12:11 PM
Evgeniy
0
yaa replace first line.....
9th Jul 2016, 3:47 PM
Avisek Goswami
Avisek Goswami - avatar