Write the output of the following Python code:
for i in range(2,7,2): print(i*'$')
$$ $$$$ $$$$$$
range(2,7,2) returns [2, 4, 6] as it defines a range of 2 to 6 with a step of 2. The loop iterates as below:
range(2,7,2)
i = 2
$$
i = 4
$$$$
i = 6
$$$$$$