You are on page 1of 1

9/4/22, 4:47 PM Platinum assesment 2 - Jupyter Notebook

In [1]: N = int(input())
a = ord('A')
d=[]
for i in range(N):
b=chr(a+i)
d.append(b)

c=i+1
d.append(c)
z=[]
for i in range(N+N):
if i%2==0:
for i in d[:i+2]:
print(i,end=" ")
print()

A 1

A 1 B 2

A 1 B 2 C 3

A 1 B 2 C 3 D 4

In [2]: c = str(input())
v1=['a','e','i','o','u']
v2=[]
for i in v1:
a = ord(i)
v2.append(a)
b=i.upper()
d=ord(b)
v2.append(d)

if ord(c) in v2 :
print('Vowel')
else:
print('Consonant')

Consonant

In [ ]: ​

localhost:8888/notebooks/Platinum assesment 2.ipynb 1/1

You might also like