Skip to content

Commit 84b4116

Browse files
authored
Basics
1 parent 01f2075 commit 84b4116

6 files changed

+27
-0
lines changed

Creating_Variables.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'''Python syntax for creating variables is like x=5 or _x= "gaurav". Variables name must have A-z,0-9 or underscores only.
2+
They are case Sensitive. They must start with letter or underscore'''
3+
x=5
4+
y='gaurav'
5+
_z=5.0
6+
print(x)
7+
print(y)
8+
print(_z)
9+
print(type(x))
10+
print(type(y))
11+
print(type(_z))

Docstring.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'''Hello World
2+
This is the example of the docstring '''
3+
print("The above example is example of docstring")

HelloWorld.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("HelloWorld")

comments.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#Hello Do you want to become a python programmer?
2+
print("That upper text is comment")

concatenation.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
x=5
2+
y=8
3+
_x='gaurav'
4+
_y='neupane'
5+
print(x+y)
6+
print(_x+_y)
7+
print("Hello World How are you. My marks is "+_x)

indentation.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
print("Indentation Example")
2+
if 5>2:
3+
print("Five is greater than 2")

0 commit comments

Comments
 (0)