How to Take Input as A-Z and print all even positioned Char
python
Answers
Answered by
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