#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) |
Friday, May 8, 2020
Python Class 110 - Kapil Sharma
Location:
Panchkula, Haryana, India
Subscribe to:
Post Comments (Atom)
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...

-
#Yield Calculator Application:- def Yield_function1 ( n1 , n2 ): return (n1*n2) MV1 = float ( input ( "Please enter ...
-
print ( "*** Application for Simple Interest Calculator ***" ) print ( "\n" ) PV = float ( input ( "Please ente...
-
Cheet Sheet: 1. List = Arrays. List = ["One","Two","Three"]; print List[2]; 2. Tuple() = List, b...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.