This is a freebie, as the code is already provided.
Challenge
Use no more than 22 lines of code and 8 object function calls.
1 2 3 4 5 6 7 8 9101112131415161718192021
importelf,munchkins,levers,lollipops,yeeters,pits# Grab our lever objectlever=levers.get(0)munchkin=munchkins.get(0)lollipop=lollipops.get(0)# move to lever positionelf.moveTo(lever.position)# get lever int and add 2 and submit valleverData=lever.data()+2lever.pull(leverData)# Grab lollipop and stand next to munchkinelf.moveLeft(1)elf.moveUp(8)# Solve the munchkin's challengemunchList=munchkin.ask()# e.g. [1, 3, "a", "b", 4]answer_list=[]foreleminmunchList:iftype(elem)==int:answer_list.append(elem)munchkin.answer(answer_list)elf.moveUp(2)# Move to finish