Python exam

can anyone please help me with the python exam code questons

It’s not easy, the final 3 code completion test are not simple