python half of string

python half of string 7

First_half=YourString[:len(YourString)//2] Second_half=YourString[len(YourString)//2] Here is what the above code is Doing: 1. We are creating a variable called ‘First_half’ and assigning …

Read more