Skip to content

Commit ce7b05a

Browse files
authored
Add files via upload
0 parents  commit ce7b05a

6 files changed

+102
-0
lines changed

brocode.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name = "5"
2+
print("hello " +name)
3+
print("sum : ", 4+5 )
4+
print("hello , \n bhai")
5+
#my name rajeev
6+
#why i need mee
7+
8+
print("kuchbhi 1")
9+
print("bvsvbis")
10+
print("nbksbhdia")
11+
print("ok bhuai jhsbuc")

main.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
print("i love u")
2+
print("ok i love u ")

python cli.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#command line interface
2+
#to computer perform some task
3+
# REPL - Read Evaluate print loop
4+
#jkabd
5+
6+
print("mnbczsj")

python indation.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
print("xnbcsbckz")
2+
print("nzx czsb")
3+
#IndentationError: unexpected indent space diya hu isliye ye erro aa raha hai

variable and their declarations.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#variable are cantaner use to store data
2+
'''jaise m/m me kuch store krna hai uske liye ------------
3+
| y=10 |
4+
| x=5 |
5+
6+
isme data store ho raha'''
7+
8+
'''#y-x
9+
10+
it can be different type
11+
x=10 int valu
12+
13+
z=jone data type ---- string
14+
15+
a=5.2 data type - floot data type
16+
17+
b= false / true boolean data type
18+
19+
c=none null value'''
20+
21+
# VARIABLE DONT NEED TO BE DECLARED WITH ANY PARTICULAR TYPE
22+
23+
'''Dynamically typed''' '''python'''
24+
25+
26+
27+
#.............................................
28+
29+
30+
'''nsme ="jone"
31+
roll no ="2020"
32+
is_student= ('true\ false')
33+
'''
34+
35+
'''A VARIABLE NAME MUST START WITH A LETTER OR THE UNDERSCORE CHAR
36+
A VARIABLE NAME CANNOT START WITH A NUMBER
37+
A VARIABLE NAME CAN ONLY CANTAIN ALPH CHAR AND UNDERSCHORE A- Z AND 0-9
38+
IT IS CASE SENSTIVE
39+
LIKE COUNT , count Count all three are differents
40+
'''

variable.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#string
2+
3+
name="riy.eev"
4+
print(type(name))
5+
6+
# integer
7+
8+
roll_no=143
9+
print(type(roll_no))
10+
11+
#floating nom
12+
13+
per=6.5
14+
per=95
15+
16+
print(type(per))
17+
18+
#boolean
19+
20+
is_student= True
21+
print(type(is_student))
22+
23+
print(name , roll_no , per , is_student)
24+
25+
print("my name is "+name + " and my roll no is" , roll_no )
26+
27+
print("i schored" , per , "% in final year . i am a student " , is_student)
28+
29+
#print expressiom
30+
31+
print("my per has change to " , per-10)
32+
33+
#printing with seperater
34+
35+
print(name, roll_no, per , is_student, sep="_")
36+
37+
x=1
38+
y=2
39+
z=3
40+
print(x,y,z, sep="->")

0 commit comments

Comments
 (0)