Menu

Records - Code Quiz

1. What is printed when this program runs?

stock = [['P01', 'Pencil', '0.45', '120'], ['P02', 'Ruler', '0.99', '40'], ['P03', 'Eraser', '0.30', '0']] print(stock[1][1])
40
P02
Ruler
Pencil

2. What value is printed?

item = ['P04', 'Glue stick', '1.25', '15'] price = float(item[2]) print(price * 4)
5
5.0
1.251.251.251.25
60.0

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic