three type

mail@pastecode.io avatar
unknown
plain_text
2 years ago
484 B
2
Indexable
for type in range (1,4):
    if type ==1:
        num1=int(input("number of type 1 ="))
        bill1=num1*20000
        print("the bill is", bill1)
    elif type ==2:
        num2=int(input("number of type 2 ="))
        bill2=num2*40000
        print("the bill is", bill2)
    elif type ==3:
        num3=int(input("number of type 3 ="))
        bill3=num3*55000
        print("the bill is", bill3)

total_bill=bill1+bill2+bill3
print("the total bill is", total_bill)