Coding Quiz
Level 5, 2026-05-22
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
B="1"
B="c"
Print(B+B)
[1]
if True:
    Print(1)
elif True:
    Print(2)
else:
    Print(3)
[1]
Z="d"
Print(d)
[1]
def isCool(X):
    F = false
    if X > 3:
        F = true
    return F

def isFool(E):
    Y = false
    if E < 2:
        Y = true
    return Y

E = 6
Print(E)
if isCool(E):
    Print("!")
elif isFool(E):
    Print("?")
else:
    Print("?")
[2]
for Q in [ 6,4,"b",2 ]:
    if (Q >= 4):
        Print(Q)
    else:
        Print(2)
[1]
def DoSum(F,B,VAR)
    E=VAR + B * F
    Print(E)

DoSum(3,6,9)
[1]
def doThis(F):
    VAR=F - 4
    VAR = doThat(VAR)
    return VAR

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

F = doThis(5)
Print(F)
[2]
for E in [ "e",1,3 ]:
    Print(E)
[1]
def doThis(B):
    B=B - 1
    B = doThat(B)
    return B

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

A = doThis(9)
Print(A)
[2]
F=5
for B in range(3):
    F = F - B

Print(F)
[1]
Z=False
Q=False
if Z == False:
    Print(1)
elif Q != True:
    Print(2)
else:
    Print(3)
[1]
F=6
for Q in range(2):
    F = F - Q

Print(F)
[1]
for Y in [ 3,"d" ]:
    if (Y >= "d"):
        Print(Y)
[1]
def doThis(E):
    Q=E - 7
    Q = doThat(Q)
    return Q

def doThat(Z):
    X=Z * 5
    return X

VAR = doThis(5)
VAR = doThis(VAR)
Print(VAR)
[2]
X=3
for B in range(4):
    X = X - B
    X = X * 3

Print(X)
[2]