Skip to main content

Making Calculations from User Input with Python

Hands-On Lab

 

Photo of Keith Thompson

Keith Thompson

DevOps Training Architect II in Content

Length

00:30:00

Difficulty

Beginner

After learning about data structures, user input and output programming becomes a lot more powerful. There are many things that we can accomplish by simply taking user input, running it through a process, and returning some useful output. To put these skills to use, we'll write a simple tool to perform temperature conversions from Fahrenheit to Celsius. To feel comfortable completing this lab you'll want to know how to do the following: Handling user input using the input function. Watch the videos from the "Input and Output Operations" section of the [Certified Entry-Level Python Programmer Certification][1] course. Type casting from strings to floats. Watch the "Type Casting" video from the [Certified Entry-Level Python Programmer Certification][1] course. * Printing to the screen. Watch the videos from the "Input and Output Operations" section of the [Certified Entry-Level Python Programmer Certification][1] course. [1]: https://linuxacademy.com/cp/modules/view/id/413

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.