-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.intorduction.py
More file actions
199 lines (147 loc) · 3.41 KB
/
1.intorduction.py
File metadata and controls
199 lines (147 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# मेरे Youtube चैनल को सबस्क्राइब करना ना भूलो ताकि आपको कोड का पूरा फ़्लो समझमे आए - https://www.youtube.com/channel/UCphs2JfmIClR62wbyf76HDg
# कोई भी सवाल है उसको मेरे यूट्यूब चैनल के कमेन्ट या डिस्कशन सेक्शन मे पूछ सकते हो - https://www.youtube.com/channel/UCphs2JfmIClR62wbyf76HDg/discussion
# और हाँ GitHub पर मुझे फॉलो करना ना भूलो ताकि सारे अपडेट एण्ड वर्क आपको मिलता रहे।
'''
Python:
Web Development
software dever.
mathematics
system scripting
Data Sci.
Machine learing
Deep ML
AI
Setup:
Python
VS Code: edtior
Topics:
introduction
syntax
comment
variable
'''
# intend: ye programming syntex ko sahi tarike se follow karne ke liye hota hai
'''
Varaible:
because ye value ko store karta hai
Problem: kis type ki value store kiya hai pata nahi?
DataType:
Ye variabl ne kis type ki vale store ki hai wo bata hai?
datatype check karne ke liye type() method ka use kiya
Opetaor:
Codtion
loop
functon
class
file handling
database
'''
x = 6
y = '6'
print('\nX: ',type(x), 'Y: ',type(y))
# ye single line comment hai
'''
ye multiline comment hai
'''
print('Hello how are you')
print('Hello how are you')
if 5 > 10:
print('hello')
print('hello')
# condion
if 4 > 1:
a = 7
b = 10
sumval = a + b
print('\nSUmval: ',sumval)
print('\nEnd of outer if')
# inner if condtion
if 2 > 1:
print('\nYEs this inner condtion is rihgt')
# loo in inner condtion
for i in range(6):
print('Loop: ',i)
'''
PHP Code for if condtion:
if(condiont){
body of if
}
c / c++ / php / java / aps.net
'''
# condtion sysntex
multilineCommenVal = '''
if condtion:
body of if
if and else syntax:
if condtion:
body of if
else:
body else
if elif else:
if condtion:
body of if
elif condtion:
body of elif
else:
body of else
foor loop :
for intitialized valuese in values:
body of for
All styntax
condtion
loop
while
foot
function
class
'''
print(multilineCommenVal)
# single line comment -> ctr + /
'''
multiline comment
'''
print('Hello how are you where are you\n\n This is second line\n\n\n Hello 3rd line')
'''
Varaible:
1. variable jo single value ko store karta hain
2. vrabiel multiple values store karta hai useing:
list
tuple
set
dictonary
'''
a = 6
ab = (1,2,3,4,5,6,7,8,9)
print('ab type: ',type(ab))
print('Use Number: ',ab[0])
print('Use Number: ',ab[1])
print('Use Number: ',ab[2])
print('Use Number: ',ab[3])
# datatype
'''
String
Number System
int: 987987
float: 8.9
complex: 3j is case me small j hi use hota hai complex ke liye
Sequncing:
List:
Tuple:
Range:
Mapining:
Dict: key:value
Set:
union
intersetion
etc....
Boolean
Binary
'''
'''
Question:
1. What is intentationin python?
2. array kya hai?
2. array me push anad pop kya hota hai?
3. array me search and sort kaise use karte hain?
4. kya comple me small j ke alawa koi aur character le sakte hain?
'''