Created
August 9, 2019 00:33
-
-
Save leveled/06a51e4a2bcf0f9ed79ca3c213390adb to your computer and use it in GitHub Desktop.
Divide string in half in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firstpart, secondpart = string[:len(string)//2], string[len(string)//2:] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment