How do i make this work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i make this work?

I want to print the directory of a list of builtin functions. This is my code so far. Printing them individually works: print (*dir(print), sep = '\n') how do I make my code work? https://code.sololearn.com/cjqg471WhhrM/?ref=app

18th Sep 2021, 7:58 PM
Harsha S
Harsha S - avatar
3 Answers
+ 3
Maybe, because: functions = [ 'print', 'list'] #print and list are strings, here #Try replace it with this: functions = [print, list] #And replace the '+' with ',' in line 3
18th Sep 2021, 8:53 PM
Sousou
Sousou - avatar
+ 2
Sousou thank you
19th Sep 2021, 3:04 AM
Harsha S
Harsha S - avatar