Coding Quiz
Level 5, 2026-09-01
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
X=0
while (X<2):
    X=X+1
    Print("X")

[1]
def doThis(Y):
    Q=Y + 7
    Q = doThat(Q)
    return Q

def doThat(F):
    X=F - 4
    return X

Q = doThis(5)
Print(Q)
[2]
for F in [ "a",3,"a","e" ]:
    Print(F)
[1]
Z = "2"
Z = "A"
X = 1
F = 7
B = X+F
Print(B)
[1]
B=9
Print(B)

def MyFunction (B):
    B=B+7
    Print(B)

MyFunction(6)
Print(B+1)

[1]
Y=2
for X in range(2):
    Y = Y + X

Print(Y)
[1]
B=6
for X in range(4):
    B = B * X

Print(B)
[1]
Q="f"
Q="3"
Print(Q)
[1]
def DoSum(F,A)
    E=F + A
    return E

VAR=DoSum(4,2)
Print(VAR)
[1]
for A in [ "c","c","b",1 ]:
    if (A != "c"):
        Print(A)
[1]
VAR=2
for B in range(2):
    for B in range(3):
        VAR = VAR - B

Print(VAR)
[2]
Y=0
E=1
while (Y<4):
    Y=Y+1
    E=E*Y
Print(E)

[1]
def doThis(Q):
    Q=Q - 5
    return Q

def doThat(E):
    Y=E - 8
    return Y

F = doThis(3)
F = doThat(F)
Print(F)
[2]
def doThis(Z):
    X=Z * 1
    return X

def doThat(X):
    E=X * 1
    return E

Z = doThis(8)
Z = doThat(Z)
Print(Z)
[2]
Q="g"
Print(Q)
[1]
E = "A"
VAR = "!"
B = 6
A = 2
VAR = VAR+E
Print(VAR)
[1]