In [12
#WAP to input the total purchase amount, And print payable anount,
#if total purchase amount is greater than Rs.2000 give 26% discount.
TPAsint(input ("Enter the purchase anount"))
if TPA>2000:
PASTPA.B
else:
PAsTPA
print(“Payable anount is",PA)
Enter the purchase amount2001
Payable amount is 1680, 800800000002
‘WAP to input two different numbers and check which one is greater
Ni=int(input("enter the number one”))
N2=int(input("Enter the number two"))
if NIDN2:
print("Greater number is",N1)
else:
print("Greater number is",N2)
yter the number one12
iter the number two2
Greater number is 12
A#NAP to input any number and check the nunber is positive or negative
Neint(input("Enter the nunber"))
if We:
print("Nunber is positive")
elif Neo:
print (“Number is negative")
else:
print(*Nunber is zero”)
yter the number@
Number is zero
#NAP to input any number and check the number is even or odd
Neint(input("Enter the nunber"))
if wa:
print ("Number is even")
else:
print("Nunber is odd*)
Enter the number@
Number is even
AWAP to input the selling price and cost price of an item and
check the shopkeeper made how much profit or Loss or no profit no Loss
SPzint (input("Enter the Selling Price of an iten"))
CPzint(input("Enter the Cost Price of an iten"))
Af SP>CP:
(sP-cP)*1@0/cP)
Profit in percent is",Profit)
Loss=((CP-SP)*180/cP)
print("Loss in percent is", Loss)
else:
print("No profit no loss")wter the Selling Price of an item1eo
iter the Cost Price of an itemias
Loss in percent is 4.761904761904762
WAP to input any year and check the year is Leap year or not
/=int(input("Enter year"))
Af YiA=
print("Year is a leap year")
else:
print("Year is not a leap year")
iter year2024
Year is a leap year