Page 29 - PlusGPT_V2.1_C8_Flipbook
P. 29
On running the program, we get the following output:
Program 4: To display one of the two alternate messages.
On running the above program, we get the following output:
Let’s CatCh uP Computational Thinking
Find the error in the following code and rewrite the code.
if(age > 18)
print('You are eligible to vote')
else:
print('Not eligible to vote')
Conditional Statements in Python 27

