slides05-for-ex1.py
Click here to get the file
Size
1 kB
-
File type
text/python-source
File contents
for i in range(10):
n = input("Digite a quantidade de pedidos do %do vendedor: "%(i+1))
print "Comissao: ",
if n <= 19:
print "10%"
elif n >= 20 and n < 50:
print "15%"
elif n >= 50 and n < 75:
print "20%"
else:
print "25%"