Coding Quiz
Level 4, 2026-11-04
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 = 2
A = 8
if B == 5:
    Print("1")
    if A != 2:
        Print("2")
    else:
        Print("3")
elif B >= 3:
    Print("4")
    if A != 3:
        Print("5")
    else:
        Print("6")
else:
    Print("7")
    if A > 7:
        Print("8")
    else:
        Print("9")
[2]
def DoSum(B,E)
    X=B * E
    Print(X)

DoSum(8,4)
[1]
E=4
if Q >= 5:
    Print("Yes")
else:
    Print("No")
[1]
VAR=0
A=""
while (VAR<7):
    VAR=VAR+1
    A=A+"X"
Print(A)

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

def doThat(E):
    X=E - 9
    return X

E = doThis(3)
E = doThat(E)
Print(E)
[2]
A="E"
Print("A")
[1]
X = ""
B = "1"
X = 2
X = 4
F = X+X
Print(F)
[1]
A=6
X=6
Y=A * X
Print(Y)
[1]
Z=3
Print(Z)

def MyFunction (Z):
    Z=Z+8
    Print(Z)

MyFunction(7)
Print(Z+3)

[1]
E="G"
F="G"
Print("E"+F)
[1]
Y="E"
Print(E)
[1]
def DoSum(A,E)
    F=A + E
    return F

DoSum(8,4)
Print(F)
[1]
def doThis(VAR):
    F=VAR + 1
    F = doThat(F)
    return F

def doThat(B):
    E=B + 2
    return E

Y = doThis(9)
Print(Y)
[2]
if False:
    Print(1)
elif False:
    Print(2)
else:
    Print(3)
[1]
VAR=False
X=True
if VAR != True:
    Print(1)
elif X != False:
    Print(2)
else:
    Print(3)
[1]
def Hello(Z)
  B="Hi " + Z

Hello("Flip")
[1]
X=0
while (X<3):
    X=X+1
    Print("X")

[1]