python half of string

Solutions on MaxInterview for python half of string by the best coders in the world

showing results for - "python half of string"
Debora
21 Sep 2016
1First_half=YourString[:len(YourString)//2]
2Second_half=YourString[len(YourString)//2]