Coding Quiz
Level 5, 2026-05-13
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
def DoSum(Z,Q)
    VAR=Z * Q
    return VAR

X=DoSum(1,8)
Print(X)
[1]
for X in [ "b",5,"d" ]:
    Print(X)
[1]
Q = "6"
B = "c"
VAR = 4
A = 3
if B<VAR:
    Print(1)
elif A<B:
    Print(2)
elif B<VAR:
    Print(3)
else:
    Print(4)
[1]
def Hello(B,type)
    if (!B) return
    if (type=="good"):
        F="Hi "
    elif (type=="bad"):
        F="Boo "
    else:
        F="Bye"
    return F + " " + B

X = Hello("bad","Max")
Print(X)
[1]
def Hello(Y)
    E="Hi " + Y
    Print(E)

Hello("Felix")
[1]
B=2
for Q in range(5):
    B = B - Q

Print(B)
[1]
E="d"
Print(E)
[1]
F="6"
F="G"
Print(F)
[1]
VAR = ""
A = "A"
Q = 9
F = 7
X = F+Q
Print(X)
[1]
F = 9
B = 8
if F <= 4:
    Print("1")
    if B >= 6:
        Print("2")
    else:
        Print("3")
elif F >= 4:
    Print("4")
    if B <= 2:
        Print("5")
    else:
        Print("6")
else:
    Print("7")
    if B > 1:
        Print("8")
    else:
        Print("9")
[2]
F="3"
F="E"
Print(F)
[1]
if (True and True):
    Print(1)
elif (True or True):
    Print(2)
else:
    Print(3)
[1]
X=0
Q=1
while (X<6):
    X=X+1
    Q=Q*X
Print(Q)

[1]
Y="e"
Q="a"
[1]
def isCool(X):
    Z = false
    if X > 1:
        Z = true
    return Z

def isFool(Q):
    X = false
    if Q < 0:
        X = true
    return X

F = 5
Print(F)
if isCool(F):
    Print("!")
elif isFool(F):
    Print("?")
else:
    X=0
[2]
def doThis(Z):
    Y=Z - 6
    Y = doThat(Y)
    return Y

def doThat(Z):
    A=Z + 4
    return A

E = doThis(5)
Print(E)
[2]
def Hello(Y,type)
    if (type=="good"):
        F="Hi "
    else:
        F="Bye"
    Print(F+" "+Y)

Hello("Julie","good")
[1]