Answers for "how to return half of a string in python"

2

python half of string

First_half=YourString[:len(YourString)//2]
Second_half=YourString[len(YourString)//2]
Posted by: Guest on October-14-2020

Code answers related to "how to return half of a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language