Home > Articles > Open Source > Python

  • Print
  • + Share This
This chapter is from the book



  1. The print function is part of the Python standard library and is considered a built-in function. True or false?
  2. When is a variable created and assigned a data type?
  3. Which of the following is a valid Python data type?

    1. int
    2. input
    3. print


  1. True. The print function is a built-in function of the standard library. There is no need to import it.
  2. A variable is created and assigned a data type when it is assigned a value. The value and data type for a variable can be changed with a reassignment.
  3. int is a Python data type. input and print are both built-in Python functions.
  • + Share This
  • 🔖 Save To Your Account