Scopes
Syntax
Logic
Functions
100
How are local scopes different from global scopes?

local scopes can only be accessed within whatever clause they are in

100

If a line of code has an indentation in front of it, what does that mean?

It is inside a clause

100

What are nested loops

loops within each other

100
What is parameter

An input

200

Give an example of a local scope

a variable within a function

200

True or False: Indents can used to classify scopes

True

200

10%3

1

200

What is the difference between a parameter and an argument

Nothing

300

how do you tell where a global variable is compared to a local variable?

Local variable is inside some clause, while global variables are often outside of all clauses
300

If your editor does not support the [Tab] key for some reason, how many spaces is an indent?

4

300

How do I check if a number is odd or even in python?

Use the " % " operator

300

Is there a limit to how many parameters your function can take (Considering your computer is powerful enough to handle it)

No

400

a=20

def repair(part):

    a=10

print(a)

20

400

If a line of code has three indents in front of it, how many if-statements could it be in?

3

400

(1+2==5) and (1+2==3 or "a"=="a")

false

400

def repair(part)

    print("This part is repaired"+part)

Nothing will happen

M
e
n
u