print('Python means Silan Software')
Python means Silan Software
x=100
print(x)
100
type(x)
int
y=12.34
print(y)
12.34
type(y)
float
s='python programming'
print(s)
python programming
type(s)
str
z=True
print(z)
True
type(z)
bool
x+y
112.34
#Python Arithmetic Opertaors(+ - * / // % **)
x=5
y=3
x+y
8
x-y
2
x*y
15
x/y
1.6666666666666667
x//y
1
x%y
2
x**y
125
#Python Comparison Operators(< <= > >= == !=)
#In this context the output value must be a boolean value(True / False)
x<=y
False
x>=y
True
x==y
False
x!=y
True
#Python Logical Operators(and or not)
x+y>y and x!=y
True
x+y<y or x==y
False
x and y
3
x or y
5
not x+y<y
True
#Python Assignment Operator(=)
x1=200
print(x1)
200
x1+=50
print(x1)
250
#Python Bitwise Operators
x & y
1
x | y
7
x ^ y
6
~x
-6
x<<3
40
x>>2
1
#Python Identity Operators(is is not)
x1=100
x2=100
y1=[10,20,30,40,50]
y2=[10,20,30,40,50]
x1 is x2
True
y1 is y2
False
y1 is not y2
True
#Python Membership Operators(in not in)
s="Hello World!"
'h' in s
False
'h' not in s
True
'H' in s
True
Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.
We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc