Answer to Question #255923 in Python for GANESH

Question #255923

can you please take out the half name of your full name by index method


1
Expert's answer
2021-10-24T13:53:57-0400
st = input("Enter full name: ")
n = len(st)
mid  = n//2
print(st[:mid])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS