Coding Quiz
Level 2, 2026-05-26
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(VAR,Q,X) F=VAR * Q - X Print(F)
DoSum(9,1,4)
| [1]
|
|
|
|
def DoSum(A,Q) E=A - Q return E
A=DoSum(5,4) Print(E)
| [1]
|
|
E=0 while (E<3): E=E+1 Print("X")
| [1]
|
|
if False: Print(1) elif False: Print(2) else: Print(3)
| [1]
|
|
B=5 if F > 8: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(Z,A,VAR) Y=A - VAR - Z Print(Y)
DoSum(9,8,3)
| [1]
|
|
#Print("A") Print("B") Print("C")
| [1]
|
|
A=3 if X <= 4: Print("Yes") else: Print("No")
| [1]
|
|
A=4 B=1 if A >= B: Print("Yes") else: Print("No")
| [1]
|
|
def Hello(Y,type) if (!Y) return if (type=="good"): Z="Hi " elif (type=="bad"): Z="Boo " else: Z="Bye" return Z + " " + Y
Z = Hello("ok","Jenny") Print(Z)
| [1]
|
|
|
|
|
def Hello(E) F="Hi " + E
Hello("Mongo")
| [1]
|
|
def Hello(X,type) if (type=="good"): F="Hi " else: F="Bye" Print(F+" "+X)
Hello("Flip","good")
| [1]
|
|
|
def Hello(Y) X="Hi " + Y
Hello("Mike")
| [1]
|
|
E=9 B=8 if E != B: Print("Yes") else: Print("No")
| [1]
|
|
|