Coding Quiz
Level 5, 2026-04-08
All code is in Python. Operations with strings and numbers are not allowed. Ordering of string characters: !,A,1,a (meaning 'A' < 'a').
Special Symbols:    Blank:      Space:      Error: E
for B in [ "c",1 ]:
    Print(B)
[1]
Y=9
for Z in range(5):
    Y = Y - Z
    Y = Y - 4

Print(1)
[2]
E = 9
B = 8
if E > 3:
    Print("1")
    if B != 7:
        Print("2")
    else:
        Print("3")
elif E == 9:
    Print("4")
    if B > 9:
        Print("5")
    else:
        Print("6")
else:
    Print("7")
    if B > 8:
        Print("8")
    else:
        Print("9")
[2]
for Q in [ "c","d",5,2 ]:
    Print(Q)
[1]
def Hello(VAR,type)
    if (type=="good"):
        B="Hi "
    elif (type=="bad"):
        B="Boo "
    else:
        B="Bye"
    Print(B+" "+VAR)

Hello("Missy","good")
[1]
for Q in [ 3,"a",4,3 ]:
    Print(Q)
[1]
def DoSum(Q,E)
    F=Q * E
    Print(F)

DoSum(7,2)
[1]
def doThis(Y):
    Z=Y * 4
    return Z

def doThat(E):
    A=E * 4
    return A

Y = doThat(6)
Y = doThis(Y)
Print(Y)
[2]
B="f"
Print("B")
[1]
def Hello(Z,type)
    if (type=="good"):
        A="Hi "
    elif (type=="bad"):
        A="Boo "
    else:
        A="Bye"
    Print(A+" "+Z)

Hello("Flip","ok")
[1]
Z=True
E=False
if Z == True:
    Print(1)
elif E != False:
    Print(2)
else:
    Print(3)
[1]
for X in [ 5,4,4 ]:
    if (X > 4):
        Print(X)
    else:
        Print(2)
[1]
def doThis(X):
    A=X + 1
    A = doThat(A)
    return A

def doThat(E):
    VAR=E + 6
    return VAR

Q = doThis(2)
Q = doThis(Q)
Print(Q)
[2]
def doThis(X):
    A=X * 2
    return A

def doThat(Y):
    E=Y + 3
    return E

A = doThis(8)
A = doThat(A)
Print(A)
[2]
X=0
while (X<2):
    X=X+1
    Print("X")

[1]