#If-Statement and it's example:
from pip._vendor.distlib.compat import raw_input
myMoney = ['Dollar', 'Pound', 'Rupee', 'Ruble']
myInfo = raw_input("Which currency you want to buy: ")
if myInfo in myMoney:
print("Present")
else:
print("No, currency")
#Second Example:
myInfo = 4000
if myInfo>3800:
print("Good Price")
else:
print("No, Price")
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.