Saturday, May 9, 2020

Python Class 11 3 - Kapil Sharma

#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.

Blockchain: 101 (By - Kapil Sharma)

 https://testing-mines.blogspot.com/2021/10/blockchain-101-by-kapil-sharma.html Blockchain through the following attributes: Distributed:  T...