1.

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

Answer»

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.



Discussion

No Comment Found