Skip to content

Instantly share code, notes, and snippets.

@nesterione
Created June 28, 2015 10:46
Show Gist options
  • Select an option

  • Save nesterione/5169f9870748f7cceb4f to your computer and use it in GitHub Desktop.

Select an option

Save nesterione/5169f9870748f7cceb4f to your computer and use it in GitHub Desktop.
pyinput
# с каждой новой строки
a = int(input("enter something\n"))
b = int(input("enter something else\n"))
print(a,b)
# Если через пробел разделять переменные, то:
s = input("enter two numbers");
# разбить строку по пробелам
s = s.split()
a = int(s[0])
b = int(s[1])
print(a,b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment