A quick task for you

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

  1. Elements
  2. Decimals
  3. Strings
  4. Integers

Q2. What does the int() function do?

  1. Changes data to whole numbers
  2. Changes data to a string
  3. Does nothing
  4. Changes a function into a different function

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

  1. They are not different, they do the same thing
  2. The float() function deals with strings only
  3. The float() function converts data into floating point numbers only
  4. float() converts words into numbers

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

  1. Type addition in your Python shell
  2. Type def addition in your Python shell
  3. Type addition() in your Python shell
  4. Type addition() in ...

Get Python Projects for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.