Professional Documents
Culture Documents
8.6.3 Worksheet B
8.6.3 Worksheet B
3 Worksheet B
OUTPUT "Q1: How long does it take for a plastic bottle to decompose,
200 or 450 years?"
question1 = INPUT
IF question1 == 450 OR "450 years" THEN
OUTPUT "Correct"
score = score + 1
OUTPUT score
ELSE
OUTPUT "Incorrect"
OUTPUT score
ENDIF
OUTPUT "Q2: What percentage of drinks cans are made from aluminium?"
question2 = INPUT
IF question2 == 90 THEN
OUTPUT "Correct"
score = score + 1
OUTPUT score
ELSE
OUTPUT "Incorrect"
OUTPUT score
ENDIF
STOP
__________________________________________________________
Second question: 90
4. SILVER Write the python code matching the pseudocode above. You can
write in this python compiler.