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

avatar

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.





Mathematics & Digital Technologies Education

Videos, quizzes, and other learning resources

Eddie the Magic Monk has 16 years teaching experience as a high school teacher in Australia. He will explain things to you in the simplest way possible to help you fully understand high school mathematics and computer science concepts.

Eddie began his tutorial channel on Youtube in 2012. His videos have been well received all over the world and now has 22+ million views! He sees the benefit in multidisciplinary learning hence his tutorials cover topics ranging from maths to dance.




0
0
0.000
0 comments