a=4 if a%2 ==0:
print(a, 'is even number')
else:
print(a, 'is odd number')
Answers
Answered by
4
There are a few errors in your program
- while printing it should be (a+”is an even number”)
- else doesn’t have semi colon
- the data type of a is not defined
- while printing it should be (a+”is an even number”)
- else doesn’t have semi colon
- the data type of a is not defined
Similar questions