Skip to content

Commit f1f51df

Browse files
Updated
1 parent 6468577 commit f1f51df

14 files changed

+374
-93
lines changed

00.0Backup Classes Notes/00.first.py

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# print() ## print() is function it is used for creating the output
2+
# print("Hello World",5+7)
3+
4+
# end='' it is a parameter of the \n disable
5+
6+
# print("Result",end=' ')
7+
# print("Add",5+4,end=' ')
8+
# print("Sub",5-4,end=' ')
9+
# print("mult",5*3,end=' ')
10+
# print("Div",4/5)
11+
12+
# Comments is python
13+
14+
# This is a comment in python
15+
16+
# you can use these data in multiple times in using variable
17+
18+
# a = 2+5
19+
# s = 5-4
20+
# m = 4*6
21+
# d = 8/5
22+
23+
# print("Add",a,end=' ')
24+
# s = 4-9 ## updation of the variable value
25+
26+
# print("Sub",s,end=' ')
27+
# print("mult",m,end=' ')
28+
# print("Div",d)
29+
30+
# How to user input
31+
32+
## using the input("Prompt") function
33+
34+
# name = input("Enter your name: ")
35+
# print(name)
36+
37+
# num = input("Enter the value ")
38+
39+
# print("Add",num,end=' ')
40+
# # s = 4-9 5
41+
# # ## updation of the variable value
42+
43+
# print("Sub",num,end=' ')
44+
# print("mult",num,end=' ')
45+
# print("Div",num)
46+
47+
# num1 = input("enter the num1: ")
48+
# # '8' + '6' it is a string data
49+
# num2 = input("enter the num2: ")
50+
51+
# print("Resule",num1+num2)

00.0Backup Classes Notes/01.second.py

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# # DataTypes in python
2+
# # int
3+
# i = 30
4+
# print(i)
5+
# print(type(i))
6+
7+
# # float
8+
# i = 30.5
9+
# print(i)
10+
# print(type(i))
11+
12+
# Complex (imaginery No.)
13+
# i = 30+5j
14+
# print(i)
15+
# print(type(i))
16+
17+
# num1 = float(input("Enter the num1 : "))
18+
# num2 = float(input("Enter the num2 : "))
19+
20+
# result = (num1+num2)
21+
# print(result,"%")
22+
# print(type(result))
23+
24+
# boolean Data (True/False)
25+
# i = True
26+
# print(type(i))
27+
# i = False
28+
# print(type(i))
29+
# i = 0 #False it is 0
30+
# j = 1 # true it is positive 1
31+
# print(bool(j))
32+
33+
# Byte Data
34+
# i = "Mayank" # Character type data
35+
# print(type(i))
36+
37+
# i = b"Mayank" # Byte Type data ,ASCII Code provided in any letter symbole or number
38+
# print(type(i))
39+
40+
# print("",i)
41+
42+
# None type # i don't know the defing the data
43+
44+
# i = None
45+
# print(i)
46+
47+
# Non primitive datatype ,Collection Type
48+
49+
# l1 = [1,2,3,4,5]
50+
# print("List1",l1)
51+
# print("List1",type(l1))
52+
# print(l1[4]) # List index out of range
53+
54+
# # list is used a CRUD operation
55+
# l1[3] = "Python" ## Update value
56+
# print(l1)
57+
# l1.append(45) ## adding value
58+
# print(l1)
59+
# l1.remove("Python") ## Removing value
60+
# print(l1)
61+
62+
# Tuple
63+
64+
# t1 = (1,2,3,4,5)
65+
# print(t1)
66+
# print(type(t1))
67+
# print(t1[2])
68+
69+
# tuple is Do not use a CRUD operation
70+
# t1[3] = "Python" ## Update value
71+
# print(t1)
72+
# t1.append(45) ## adding value
73+
# print(t1)
74+
# t1.remove("Python") ## Removing value
75+
# print(t1)
76+
77+
# Set
78+
# s1 = {1,2.44,3+4j,False} ## Un arranged data not follow the sequencing
79+
# print(s1)
80+
# print(type(s1))
81+
# print(s1[2]) # Don't access through the index value in set
82+
83+
# set is Do not use a CRUD operation only use create ,read or Delete
84+
# s1.remove(2.44) ## Removing value
85+
# print(s1)
86+
# s1.add("Mayank") ## add value
87+
# print(s1)
88+
89+
# Frozenset or set will be same
90+
# f1 = {1,2.44,3+4j,False} ## Un arranged data not follow the sequencing
91+
# print(frozenset(f1))
92+
# print(type(f1))
93+
# print(f1[2]) # Don't access through the index value in set
94+
# set is Do not use a CRUD operation only use create ,read or Delete
95+
96+
97+
# Range
98+
# Start #end #step
99+
# print(list(range(1,11,1)), "list")
100+
# print(tuple(range(1,11,1)), "tuple")
101+
# print(set(range(1,11,1)), "set")
102+
# print(frozenset(range(1,11,1)), "frozenset")
103+
104+
# print(list(range(11)))
105+
106+
# Reverse the counting
107+
# r = range(11,0,-1)
108+
# you can type cast the range data any formate like list tuple set
109+
# print(list(r))
110+
111+
# Don't change the data
112+
# print(r[6])
113+
114+
115+
# # Dictionery ('Key' : 'Value')
116+
117+
# dic = {
118+
# 'name' : "Mayank",
119+
# 'class' : "5th",
120+
# 'roll_no' : 2682483894,
121+
# 'school' : 'Summer Field Public School'
122+
# }
123+
# print(dic)
124+
# print(type(dic))
125+
126+
# data1 = {
127+
# 'a' : ['apple','airplane','alpha'],1:2.5,3:3+5j,4:False}
128+
# print(data1)
129+
# print(type(data1))
130+
131+
# ### you can use CRUD operation
132+
133+
# data1[1]=300 ## Updating the data
134+
# print(data1)
135+
136+
# data1['b']='Name' ## Adding the data
137+
# print(data1)
138+
139+
# print(data1['a'][1]) ## you can access the data / reading
140+
141+
# data1.pop(3) ## can we delete the key automatic data deleted
142+
# print(data1)
143+
144+
145+
146+
# data1 = {'menu': ['Pizza','Maggi','Pasta','Chill Patato','Bargar']}
147+
# print(data1)
148+
# print(type(data1))

00.0Backup Classes Notes/02.third.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Operations
2+
## Airthmatic operator
3+
4+
# i = int(input("enter the value:"))
5+
# j = int(input("enter the value:"))
6+
7+
# result = i+j
8+
# print(result)
9+
# result = i-j
10+
# print(result)
11+
# result = i*j
12+
# print(result)
13+
14+
# i = 5
15+
# j = 6
16+
# result = i/j
17+
# print(result)
18+
# result = i//j
19+
# print(result)
20+
# result = i**j
21+
# print(result)
22+
23+
# Assignment operator
24+
i = 5
25+
j = 6
26+

03.Operators/00.basic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# Example :
44
# 2 + 3
5-
# Data # operator # Data
5+
# Data # operators # Data
66

77
# There are different type of operators :-
88

9-
## Arithmatic operator : (+,-,*,/,%(Modulus),**(Exponational),//(Floar division))
9+
## Arithmatic operator : (+(Addition),-(Subtraction),*(Multiplication),/(Division),%(Modulus),**(Exponational),//(Floar division))
1010
## Assignment operator : (=,+=,-=,*=,/=,%=,**=,//=)
1111
## Comparision operator : (<,>,<=,>=,==,!=)
1212
## Logical Operator : (AND,OR,NOT)

03.Operators/01.first.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Arithmatic operator : (+,-,*,/,%(Modulus),**(Exponational),//(Floar division))
22

3+
# a = int(input("enter the a value: ")) ## 20
4+
# b = int(input("enter the b value: ")) ## 5
5+
36
a = 7
47
b = 2
58

@@ -18,8 +21,8 @@
1821
# floor division
1922
print ('Floor Division: ', a // b)
2023

21-
# modulo
22-
print ('Modulo: ', a % b)
24+
# modulus
25+
print ('Modulus: ', a % b)
2326

2427
# a to the power b
2528
print ('Power: ', a ** b)

03.Operators/02.second.py

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
# Assignment operator : (=,+=,-=,*=,/=,%=,**=,//=) it is assigning to the variable of the operator.
22

3+
# Jis variable se data late hai usme vapas dalna hai to use karenge assignment operator
4+
35
i = 5
46
j = i
57

6-
print(i,j)# 5 5
8+
print(i,j) # 5 5
79

8-
i+=j
10+
i+=j ## i = i + j
911

10-
print(i)# 10
12+
print(i) # 10
1113

12-
i-=j
14+
i-=j ## i = i - j
1315

14-
print(i)# 5
16+
print(i) # 5
1517

16-
i*=j
18+
i*=j ## i = i * j
1719

18-
print(i)# 25
20+
print(i) # 25
1921

20-
i/=j
22+
i/=j ## i = i / j
2123

22-
print(i)# 5.0
24+
print(i) # 5.0
2325

2426
i%=j
2527

26-
print(i)# 0.0
28+
print(i) # 0.0
2729

2830
i**=j
2931

30-
print(i)# 0.0
32+
print(i) # 0.0
3133

3234
i//=j
3335

34-
print(i)# 0.0
36+
print(i) # 0.0
3537

3638
# ------------------------------------------------------------------------------------
3739

03.Operators/03.1.third.py

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# String Data use on the operators
2+
## airthmetic
3+
## assignment
4+
## comparision
5+
6+
i = "python"
7+
j = "Programming"
8+
9+
# print(i,""+"",j) ## Working two data ko conicate
10+
# print(i,""-"",j) ## TypeError: unsupported operand type(s) for -: 'str' and 'str'
11+
# print(i*2,j*2) ## working data (pythonpython ProgrammingProgramming)
12+
# print(i,""/"",j) ## TypeError: unsupported operand type(s) for /: 'str' and 'str'
13+
# print(i,""//"",j) ## TypeError: unsupported operand type(s) for //: 'str' and 'str'
14+
# print(i,""**"",j) ## TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'str'
15+
# print(i,""%"",j) ## TypeError: not all arguments converted during string formatting
16+
17+
# Same as assignment operator
18+
# (+=,*=) only these operator working
19+
20+
# Comparision operator using string data
21+
22+
# ASCII Code was provide the any string perform the comparision using ascii code
23+
24+
i = "python"
25+
j = "Programming"
26+
27+
print(i>j)
28+
print(i<j)
29+
print(i>=j)
30+
print(i<=j)
31+
print(i!=j)
32+
print(i==j)

03.Operators/03.third.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Comparision operator : (<,>,<=,>=,==,!=) -- it is showwing the only provide boolean
1+
# Comparision operator : (<,>,<=,>=,==,!=) -- it is the output showing only provided boolean like true / false
22

33
# i = 5
44
# j = 2
@@ -10,11 +10,7 @@
1010
# print(i==j)# false (Equal too equal to)
1111
# print(i!=j)# true (not equal to)
1212

13-
14-
15-
1613
a = 5
17-
1814
b = 2
1915

2016
# equal to operator

0 commit comments

Comments
 (0)