#elif statement example:
from pip._vendor.distlib.compat import raw_input
myInfo = float(raw_input("Please enter the price: "))
if myInfo >= 1000:
print("Good Price")
elif myInfo <= 1000:
print("Low Price")
else:
#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
print(5<7)
print(5>7)
print(5<=7)
print(5>=7)
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
| #Printing Strings | |
| print("Hello World!") | |
| #Print Addition | |
| myData1 = 4 + 5 | |
| print(myData2) | |
| #Print Subtraction | |
| myData2 = 4 - 5 | |
| print(myData2) | |
| #Print Multiply | |
| myData3 = 4 * 5 | |
| print(myData3) | |
| #Print Divide | |
| myData4 = 4 / 5 | |
| print(myData4) | |
| #Printing Variables | |
| myData5 = 45 | |
| print(myData5) | |
| #Printing Float | |
| myData6 = 45.5 | |
| print(myData6) | |
| #Printing Alpha Numeric Output | |
| Model_number = 1234098 | |
| OEM = "Samsung" | |
| Screen_size = 6.5 | |
| Avaiable = True | |
| print("Model Number:",Model_number,"\n","OEM Details:", OEM) |
https://testing-mines.blogspot.com/2021/10/blockchain-101-by-kapil-sharma.html Blockchain through the following attributes: Distributed: T...