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 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
18.190.159.10