Search Everywhere Double Shift
Go To File Ctrl+Shift+N
Recent Files Ctrl+E
Navigation Bar Alt+Home
Print "Hello Mukesh" --> Right Click + Run
Variable
Variable is a container which holds data.
Data can be changed
Number = 10
Number = 12
str "Hello"
a=b=c=20
print(a)
print(b)
print(c)
---------------------------
a,b,c=5,10,"hello"
print(a)
print(b)
print(c)
a=5
b=10
c = hello
Basic Operator
print(x+y)
print(x+y)
print(y>x)
Output
15
50
True
str="hello world"
print('x' in str)
String
print("My name is %s" % ('sunil'))
print("My name is %s and my roll no is %d" % ('sunil',1))
Comments