Programming Assignment With Questions and Python Only by Hibba 7A
Programming Assignment With Questions and Python Only by Hibba 7A
Ans1.) Take values of length and breadth of a rectangle from user and check if it is
square or not:
Ans2.) Take two int values from user and print greatest among them:
Ans3.) A shop will give discount of 10% if the cost of purchased quantity is more
than 1000.
Ask user for quantity.
Suppose one unit will cost 100.
Judge and print total cost for user:
Ans6.) Take input of age of 3 people by user and determine oldest and youngest
among them:
Ans10.) If
x=2
y=5
z=0
then find values of the following expressions:
a. x == 2
b. x != 5
c. x != 5 && y >= 5
d. z != 0 II x == 2
e. !(y < 10):