Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Loops & Functions Final Worksheet

star
star
star
star
star
Posljednje ažuriranje over 4 years ago
5
1
1
1
Pitanje 3
3.

Reorder the follow code.

  1. number -= 2

  2. print(number)

  3. while ( number < 101):

  4. number = 0

1
1
Pitanje 1
1.

Correctly format the following function.

( , ):

print(firstName + " " + lastName)

Drugi mogući odgovor:
lastName
fullname
firstName
def
Pitanje 2
2.

Label each concept (marked in red) in the following for loop.

for i in range ( 10 , 40 , 3 ) :

for in range ( , , ):

Drugi mogući odgovor:
add to /subtract from
stop
variable
start
Pitanje 4
4.

Categorize if the loop is infinite or not

  • Infinite

  • Finite

Pitanje 5
5.

What will the following code output?