The file extension for Python files
What is .py?
Containers for storing data values
What are variables?
The process of specify a data type in Python
What is Casting?
Represent one of two values: True or False
What are Booleans?
The four collection data types in the Python programming language
What are Lists, Tuples, Sets, Dictionaries?
A series of steps to solve a problem at hand
What is an algorithm?
Variable names must begin with these two types of characters
What are Letters or underscores?
x = int(20.9)
print(x)
Prints this value
What is 20?
The process of combining one or more strings together in Python
What is concatenation?
Dictionaries store data values according to this association
What are key:value pairs?
An open source web application used to create and share documents that contain live code, equations, visualizations, and text
What is Jupyter Notebook?
What are reserved words?
Specifies multi-line strings in Python
What are triple double/single quotes?
first_list = ['cat', 0, 6.7]
new_list = first_list.copy()
print('Copied List:', new_list)
Returns this value when running the program
What is "Copied List: ['cat', 0, 6.7]"?
cars = ['Ford', 'BMW', 'Volvo']
cars.sort(reverse=True)
print(cars)
Returns this value after running the program?
What is ['Volvo', 'BMW', 'Ford']?
Python is this type of programming language
What is an interpreted language/high-level language/object oriented programming language?
j = "awesome"
def myfunc():
j = "fantastic"
print("Python is ", j)
Returns this sentenceWhat is "Python is awesome"?
myOrder = "I want {} pieces of item {} for {} dollars."
print(myOrder.____(quantity, itemNo, price))
What is "format"?
x = 7//3
print(x)
Returns this value upon running the program
What is 2?
# loose items from a set
thisSet = {"apple", "banana", "cherry", "pawpaw", "orange"}
thisSet.pop(2)
print(thisSet)
Returns this value upon running the program
In debugging, the type of error committed when the instructions given do not accomplish the intended goal
What is a logical error?
j = "awesome"
def myfunc2():
j = "fantastic"
k = "amazing"
print("Python is ", j)
print("Savvy Coders is ", k)
Returns this when run
What is:
Python is awesomeTRACKBACK ERROR
x = "Savvy Coders"
print(x[1:10:2])
What is "av oe"?
print((7//3)!=(8%6)
Returns this value upon running the program
What is "False"?
firstList = ["apple", "banana", "cherry"]
secondList = ["mango", "pineapple", "papaya"]
firstList.extend(secondList)
firstList.pop(-1)
secondList.append("watermelon")
print(firstList)
Returns this value when running the program
What is ['apple', 'banana', 'cherry', 'mango', 'pineapple']?