Skip to content

Instantly share code, notes, and snippets.

@heyjordn
Created March 1, 2015 04:26
Show Gist options
  • Save heyjordn/861720bd951b7e60767d to your computer and use it in GitHub Desktop.
Save heyjordn/861720bd951b7e60767d to your computer and use it in GitHub Desktop.
Used mainly for formatting input on Hackerrank.com
#Input Script template
def inputScript():
A = []
strng = input()
#trims whitespace
trimmed = strng.replace(" ", "")
ind = list(map(int, trimmed))
print(ind)
inputScript()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment