python half of string

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "python half of string"
Debora
21 Sep 2016
1First_half=YourString[:len(YourString)//2]
2Second_half=YourString[len(YourString)//2]