Skip to content

Commit 418df49

Browse files
authored
Add files via upload
1 parent 9270e38 commit 418df49

7 files changed

Lines changed: 60 additions & 0 deletions

File tree

break1.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
i=0
2+
while True:
3+
print("hai")
4+
if i==3:
5+
break
6+
i+=1
7+
print("Bye")

continue.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
i=0
2+
while i<5:
3+
i+=1
4+
if i==3:
5+
continue
6+
print("hai",i)
7+
print("bye")

divided2&3.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
x=[1,23,7,8,11,45,33,22,10,6]
2+
i=0
3+
while i<len(x):
4+
if x[i]%2==0 and x[i]%3==0:
5+
print(x[i])
6+
i+=1

endswithvowel.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
str=input("Enter your string:")
2+
words=str.split()
3+
i=0
4+
while i<len(words):
5+
if words[i][-1] in 'aeiou':
6+
print(words[i])
7+
i+=1

startendsvowel.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
str=input("Enter your String:")
2+
words=str.split()
3+
i=0
4+
while i<len(words):
5+
if words[i][0] in 'aeiou' and words[i][-1] in 'aeiou':
6+
print(words[i])
7+
i+=1

startswithvowel.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
str=input("Enter the string:")
2+
words=str.split()
3+
i=0
4+
while i<len(words):
5+
if words[i][0] in 'aeiou':
6+
print(words[i])
7+
i+=1
8+

strong.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
num=int(input("Enter any number:"))
2+
temp=num
3+
s=0
4+
while num>=1:
5+
dig=num%10
6+
i=1
7+
f=1
8+
while i<=dig:
9+
f*=i
10+
i+=1
11+
s+=f
12+
num=num//10
13+
14+
if temp==s:
15+
print("Number is strong Number:")
16+
else:
17+
print("Number is not strong number:")
18+

0 commit comments

Comments
 (0)