If Statement

In [70]:

price = 102
if price <100:
    print ('buy')
elif price < 110:
    print ('hold')
elif price < 120:
    print ('think about it')
else:
    print ('sell')
print('end of programming')
hold
end of programming

results matching ""

    No results matching ""