


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



name three kinds of sequences - correct answer ✔✔list tuple string a _________________ loop is used to iterate through a sequence - correct answer ✔✔for the ____________________ function is used to determine how many pairs in a dictionary or how many elements in a sequence - correct answer ✔✔len() an if statement is built by using if followed by a _________________, a __________________, and a ___________________ of one or more statements - correct answer ✔✔condition colon block name the three things that must occur for a sentry variable to effectively control the while loop - correct answer ✔✔initialize check change assignment statements take what's on the ___________ and assign it to the variable on the ___________ - correct answer ✔✔right left to print quotes inside a string, use an ___________________ to make Python ignore them. They can also be used to print tabs - correct answer ✔✔escape sequence
what are the three types of errors? - correct answer ✔✔syntax runtime logic a __________________ can be described simply as a mini-program - correct answer ✔✔function the import statement allows the programmer to import a ___________________ which contains code that can be used in any Python program - correct answer ✔✔module dictionaries consist of pairs of ________________ and _______________ - correct answer ✔✔keys values ____________________ is used to create visual and logical blocks of code - correct answer ✔✔indentation when one or more ___________________ are added to the if statement, a sequence of conditions can be evaluated - correct answer ✔✔elifs while the condition of a loop is ___________________ , the ___________________ executed - correct answer ✔✔true block and, or, and not are examples of _______________ operators - correct answer ✔✔boolean use the _______________ method to take an item out of a list based on its value - correct answer ✔✔remove all sequences start at index __________ - correct answer ✔✔ 0
tuple dictionary What is this? a = [ ] - correct answer ✔✔list What is this? a = { } - correct answer ✔✔dictionary What is this? a = ( ) - correct answer ✔✔tuple What is this? a = "" - correct answer ✔✔string What are these called? \t \n " \ - correct answer ✔✔escape sequences use the ________________ operator to find out if an item is part of a sequence - correct answer ✔✔in