0% found this document useful (0 votes)
11 views

Assignment_Conditions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Assignment_Conditions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment:

1) Take values of length and breadth of a rectangle from user and


check if it is square or not.
2) Accept any 5 city from the users and display monuments of that
specific city(like if I take delhi then it shows red fort ).
3) Write a program to check whether a number entered is three
digit number or not.
4) Take a user input value and check the value is positive or
negative.
5) Check weather the user value is odd or not
6) Write a python program that will check for the following
conditions:
Traffic light Condition.
If the light is green – Car is allowed to go
If the light is yellow – Car has to wait
If the light is red – Car has to stop
Other signal – unrecognized signal.
7) Check weather the user value is even or not
8) Determining the maximum of two numbers.
9) Checking if a year is a leap year or not
10) x=3 y=3.0
if x==y:
print(“x and y are equal”)
else:
print(“x and y are not equal”)
what will be the output of the following snippet.
11)Take a user value and check the given value is divisible by 9
or not.
12)Take a value and check the value is divisible by 3 and 5 or
not.

You might also like