Computer Science, asked by kanwaludey, 3 months ago

Q.5 Find out the errors in the given programs:
i) Program 1:
a=45
if a%2==0:
print(a, 'is an even number')
else:
print(a, 'is an odd number')​

Answers

Answered by Aashutoshjha
1

Answer:

Explanation:

The problem is with these two statements

print(a, 'is an even number')

and

print(a, 'is an odd number')​

–––––––––––––––––––––––––––––––––––

The underlined part should be inside the quotations. And "" double quotation marks are preferred for strings but not necessary.

Similar questions