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

Channel:
Subscribers:
64,099
Published on ● Video Link: https://www.youtube.com/watch?v=ghdTj___A2w



Duration: 6:01
1,053 views
21


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.