Ad Code

Responsive Advertisement

2016 A/L ICT Past paper Python


PYTHON FOR A/L Students for  - 2016 Batch  

print('சிற்றுண்டி சாலைக்கான பற்றுச்சீட்டு ')
print('---------------------------------------')

item = {1:10.00,2:12.00,3:15.00,4:10.00,5:25.00,6:45.00,7:50.00,8:25.00,9:10.00,10:12.00}
tot= 0.0;
item_code = int(input("ENTER THE ITEM CODE:"))

while item_code > 0 and item_code < 11:
    tot = tot + float(item[item_code])
    item_code = int(input("ENTER THE ITEM CODE:"))
print 'TOTAL PRICE IS:',tot

Post a Comment

0 Comments

Close Menu