Rewrite the following code in python after removing all the syntax errors. Underline each
correction done in the code.
a) a,b = 2
While a%b = 0
a+=10
b+=2
else:
print(‘End’)
b) x=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
2
Answer:
send the pic of questions
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Math,
9 months ago
Science,
9 months ago
Math,
1 year ago