Chapter 3, Calculate This!

Questions

Answers

Q1. What kind of data does the input() function return?

Strings

Q2. What does the int() function do?

Changes data to whole numbers

Q3. How is the float() function different from the int() function?

The float() function converts data into floating point numbers only

Q4. If you make a function called addition() in your Python shell, how do you run that addition function to test it?

Type addition() into your Python shell

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.198.173