Skip to content

Instantly share code, notes, and snippets.

@roman-on
Created April 9, 2020 16:55
Show Gist options
  • Save roman-on/1a22ae594dfa386b868b2daf1b7355cf to your computer and use it in GitHub Desktop.
Save roman-on/1a22ae594dfa386b868b2daf1b7355cf to your computer and use it in GitHub Desktop.
string = input("Please enter a string:")
# spaceships
middle = len(string)//2
first_half = string [0:middle]
second_half = string [middle:]
print (first_half.lower() + second_half.upper())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment