Functions
OOP
Syntax
Lists
Potpourri
100

 How to define a function in python

def function name()

100

Everything in OOP is an...

Object

100
1. print(fremont school)

2. print("fremont school")

2
100
what does a list do?

holds multiple values in one variable

100

What did our team get on ACSL on the first contest this year(out of 30)

30

200

The term for the thing a function takes in


parameter

200

A function that creates an class

What is a constructor?

200

# What is wrong with this code?

x = false

if x == true:

print(x)

No indent in line2

200

what is a thing in a list called?

element

200

What year did we start coding club?

2021

300

A function that calls itself

Recursive function

300

When a class gets traits from another class

Inheritance

300

What's wrong with this code

if(1==1)

     print('hi')

No colon

300

Use this to access an item in a list

Index

300

The club's advisor

Mr. Yu

400

To call a recursive function you do what?

def func():

      func()

400

When you turn a class into a function to call

Instance(of the class)

400
x=4

while x<10:

    print(x)


Infinite loop(aren't updating the variable x)

400

how do you acces a value in a dictionary

using the key

400

What was the first project we ever did in this club when we first started(not this year)?

Text-adventure game

500

An anonymous function

lambda function

500

When you want to pass in different types of parameters into the same function

polymorphism

500

What's wrong with this code(language is python)?

x=4;

if x==4:

    print("hi")

Semicolon first line

500

difference between tuple and list

tuple is immutable

500
Is pycurl the best library in the history of the world of the history of the world?

Yes

M
e
n
u