Computer Science, asked by TanviArora20, 9 months ago

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 singhankur1703
2

Answer:

send the pic of questions

Similar questions