1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What are the 3 basic instruction types?
Input, process, output.
What is a variable?
A named reference to a value.
What does = mean in Python?
Assignment; it assigns a value to a variable.
What is an expression?
A piece of code evaluated to produce a value.
What does print() do?
Displays output
What does input() do?
Gets input from the user and returns it as a string.
What is a string?
Text, usually written inside quotes, like "Hello".
What is the difference between "123" and 123?
"123" is a string; 123 is an integer
What does int() do?
Converts a numeric string into an integer
What does int() do?
Converts a numeric string into an integer.
Syntax error
Code violates Python's rules; the program cannot run.
What is a runtime error?
An error that happens while the program is running.
What is a logic error?
The program runs but produces the wrong result.
What is a ValueError?
An invalid value is used, like int("Henry").
What is a NameError?
A variable/name is used that doesn't exist.
What is a TypeError?
An operation uses incompatible/incorrect types.
What is an algorithm?
A sequence of instructions that solves a problem.