Python Lesson 4 - Getting Input from the User, Converting Variable Types

Описание к видео Python Lesson 4 - Getting Input from the User, Converting Variable Types

Hi everyone. In this lesson you will learn 2 important things - how to get input from the user, and how to convert between different variable types (e.g. convert from a string to an integer or a float, or vice versa). This is important because when you gather input you will receive it in a string format, and you will need to convert it to a number before you can process it numerically. When you finally print the result to the screen you might also want to convert it back to a string so you can join it with other strings.

Комментарии

Информация по комментариям в разработке