Python Programming Beginner's Tutorial: Reading Input from the Keyboard

preview_player
Показать описание
In this video I walk you through how to use the input function to get input from the user via the keyboard. First an overview, and then a programming example.
Рекомендации по теме
Комментарии
Автор

# interesting errors:
> num=float(input(Enter Num: '))
Enter Num: y
...
ValueError: could not convert string to float: 'y'
>num=input('Enter Num: ')
Enter num: 8
>type(num)
<class 'str'>
>num + 10
...
TypeError: can only concatenate str (not "int") to str

tertia