Link to home
Start Free TrialLog in
Avatar of Stephen1991
Stephen1991

asked on

Python

Noob here,

Do you know how I can get (search/find/ ?) the middle character of a string ?
ASKER CERTIFIED SOLUTION
Avatar of -Richard-
-Richard-
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stephen1991
Stephen1991

ASKER

Wow.  That was awesome.  
Thank you.
Avatar of pepr
It is better to use the // operator, i.e. midChar = s[len(s)//2].  It is the floored quotient also known as integer division.