Class 10 Python Programs1
Class 10 Python Programs1
c) WAP to ask the user for their name and print it on the
screen.
• Input a number from the user. Ask if they want to find the square of the number or
double it. Depending on the choice, perform the proper operations and print the
final result.
• Ask the user to enter the length and breadth. Check whether it is a square or a
rectangle.
NESTED IF STATEMENT
IF-ELSE