Rewrite the following python program after removing all the syntactical errors, underline each correction:
A=input(“Enter the number”) if x%2=0:
print x, “is even”
else if x<0:
print x, “Should be positive” else
print x,”is odd”
Answers
Answered by
3
Explanation:
A = input ("enter no")
if A%2=0:
print(A,"is even")
elif if x<0:
print(A,"should post")
print(A,"is odd)
Similar questions