Python For Oil and Gas: Website - Linkedin - Youtube - Variables Are Used For Storing Data Values!
Python For Oil and Gas: Website - Linkedin - Youtube - Variables Are Used For Storing Data Values!
Website - https://petroleumfromscratchin.wordpress.com/
LinkedIn - https://www.linkedin.com/company/petroleum-from-scratch
YouTube - https://www.youtube.com/channel/UC_lT10npISN5V32HDLAklsw
# examples of variables
a = 5
b = 7
print(a)
print(b)
/
1/28/2021 Python for O&G Lecture 4 - Variables - Colaboratory
5
7
print(a+b)
12
print(a*b)
35
a = 9
b =568745161
print(a)
print(b)
568745161
c = 2.56
d = 3+9j
print(c+d)
(5.5600000000000005+9j)
/
1/28/2021 Python for O&G Lecture 4 - Variables - Colaboratory
e = 'Divyansh'
print(e)
Divyansh
abc = 'random'
_abc = 'kjsdkjb'
1abc = 'jnckj'
_bh23 = 'rJKNSKJB'
_bh23$ = 59
/
1/28/2021 Python for O&G Lecture 4 - Variables - Colaboratory
print(var)
15
print(Var)
60
print(var + Var)
75
/
1/28/2021 Python for O&G Lecture 4 - Variables - Colaboratory