Skip to content

Commit 1e2084c

Browse files
Add for loop example iterating over a string
1 parent 1d7ff8b commit 1e2084c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

loops.py main

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#for Loop in Python
2+
#Iterating over a string
3+
4+
name = "Abhishek"
5+
for i in name:
6+
print(i)
7+
8+
if i=="b":
9+
print("This is special word")

0 commit comments

Comments
 (0)