Created
January 27, 2016 10:30
-
-
Save Sinitca-Aleksandr/67e1bfd0a0c852e1d9b3 to your computer and use it in GitHub Desktop.
Простые примеры ввода на Python
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
| # Для ввода текстовой строки | |
| name = input("Enter a name: ") | |
| # Для ввода целого значения | |
| x = int(input("What is x? ")) | |
| # Для ввода десятичных дробей | |
| x = float(input("Write a number")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment