How to define a function in python
def function name()
Everything in OOP is an...
Object
2. print("fremont school")
holds multiple values in one variable
What did our team get on ACSL on the first contest this year(out of 30)
30
The term for the thing a function takes in
parameter
A function that creates an class
What is a constructor?
# What is wrong with this code?
x = falseif x == true:
print(x)
No indent in line2
what is a thing in a list called?
element
What year did we start coding club?
2021
A function that calls itself
Recursive function
When a class gets traits from another class
Inheritance
What's wrong with this code
if(1==1)
print('hi')
No colon
Use this to access an item in a list
Index
The club's advisor
Mr. Yu
To call a recursive function you do what?
func()
When you turn a class into a function to call
Instance(of the class)
while x<10:
print(x)
Infinite loop(aren't updating the variable x)
how do you acces a value in a dictionary
using the key
What was the first project we ever did in this club when we first started(not this year)?
Text-adventure game
An anonymous function
lambda function
When you want to pass in different types of parameters into the same function
polymorphism
What's wrong with this code(language is python)?
x=4;
if x==4:
print("hi")
Semicolon first line
difference between tuple and list
tuple is immutable
Yes