Ask coding questions

← Back to all posts
So basically i need to make code that prints out 2 middle characters of a string.
StephenJuarez

A = input("Choose any word to see which letter is the median")
middle = len(A)//2
if len(A)%2 == 0:
print(A[len(A)//2])
else:
print()

By the way im not too good at coding so dont judge me. also this isnt python 2.7

Voters
StephenJuarez
Comments
hotnewtop
VulcanWM