-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path8.loop.py
More file actions
31 lines (24 loc) · 1.14 KB
/
Copy path8.loop.py
File metadata and controls
31 lines (24 loc) · 1.14 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
# मेरे Youtube चैनल को सबस्क्राइब करना ना भूलो ताकि आपको कोड का पूरा फ़्लो समझमे आए - https://www.youtube.com/channel/UCphs2JfmIClR62wbyf76HDg
# कोई भी सवाल है उसको मेरे यूट्यूब चैनल के कमेन्ट या डिस्कशन सेक्शन मे पूछ सकते हो - https://www.youtube.com/channel/UCphs2JfmIClR62wbyf76HDg/discussion
# और हाँ GitHub पर मुझे फॉलो करना ना भूलो ताकि सारे अपडेट एण्ड वर्क आपको मिलता रहे।
# while loop
'''
syntax of while
intilaization
while condtion:
body
increment or decrement
'''
a = 20
value = ['ayman','vivek','megha','hari','syam']
while a > len(value):
# print('Student Name: ',value[a])
# bereak
# if value[a] == 'megha':
# # print('\nHi Ayamn')
# # break
# continue
print('Student Name: ',value[a])
a += 1
else:
print('Loop ended')