Computer Science, asked by RandomMan77, 11 hours ago

How to Take Input as A-Z and print all even positioned Char
python

Answers

Answered by mercuryrishabh27
1

Answer:

alpha = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p',

'q','r','s','t','u','v','w','x','y','z']

x = alpha[1::2]

print(x)

For taking an input:

x = str(input('enter :')

y = x[::2]

print(y)

Similar questions