Created
June 28, 2015 10:46
-
-
Save nesterione/5169f9870748f7cceb4f to your computer and use it in GitHub Desktop.
pyinput
This file contains hidden or 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
| # с каждой новой строки | |
| 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