Intro to Programming - Python Review exam question and complete correct answers
print() - correct answer The ______ statement is a command built in to Python. When you run the .py file, the Python interpreter knows to display whatever is contained between the (). b = 6 print(b) - correct answer Print the value of a variable "b" that equals 6. integer - correct answer A variable type that holds whole numbers float - correct answer A variable type containing a decimal point string - correct answer The value of this variable type doesn't necessary need to be a letter. We can also have ______s that are numbers. print(c) - correct answer Use this statement to check the value of a variable "c" boolean - correct answer A Python variable which can only have two values, True or False. These True of False values reduce down to a 1 or 0, on or off. myBool = True print(myBool) - correct answer Create a boolean variable that is set to true (case sensitive) list - correct answer ''A variable type which can store multiple items together as one variable, and each of those items can actually have
Written for
- Institution
- Intro to Programming - Python
- Course
- Intro to Programming - Python
Document information
- Uploaded on
- December 20, 2023
- Number of pages
- 7
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
intro to programming python review exam question