Skip to content

Commit d2fa90c

Browse files
O Maah Go Turu Lob Solution
1 parent b25711c commit d2fa90c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: HackerEarth/O-Maah-Go-Turu-Lob.py

+16
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,19 @@
3434
In second string, all five uppercase vowels are present.
3535
In third string , all five lowercase vowels are present.
3636
'''
37+
i = int(input())
38+
39+
while i:
40+
upper_case = ['A', 'E', 'I', 'O', 'U']
41+
lower_case = ['a', 'e', 'i', 'o', 'u']
42+
test_string = input()
43+
for j in test_string:
44+
if j in upper_case:
45+
upper_case.remove(j)
46+
elif j in lower_case:
47+
lower_case.remove(j)
48+
if not upper_case or not lower_case:
49+
print('lovely string')
50+
else:
51+
print('ugly string')
52+
i -= 1

0 commit comments

Comments
 (0)