1/9
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Who created python?
Guido van Rossum
Python is an _____ programming language
interpreted
What is an interpreted programming language?
An interpreted programming language is executed line by line by an interpreter. Can sometimes be slower than compiled languages.
Does Python execute code in a top down or bottom up way?
Python code is executed from the top down.
What is a string? How can a string be defined?
A string is a sequence of characters between the opening and closing quotes. Can be defined with single or double quotes.
How do you put quotation marks inside a string?
You can use single quotes for the string and double quotes for the quote or use a backslash before and after the quotation marks inside the string. print("They said, \"Hello, world!\"")
When does a syntax error occur?
Syntax errors occur when the code is not written correctly according to the rules of the programming language.
What is a runtime error?
Error that occurs while the program is running. Examples include divding by zero, type error, value error, index error
Logical error?
Program will run without crashing, however the output is not what the programmer intended. Like 1+1 should equal 2, but instead it equals 11 or 3 or some other wrong answer.
How do you add comments or comment out a line of code?
You add a comment by using the # character, any text after # is ignored by the interpreter. Can also put # in front of a line of code so it won’t execute next time the program is run.