Python Puzzles
Tuesday, April 23, 2024
📑 Function Dictionary
📑 Task
1) What object is created by the first line of the program?
2) Rewrite the function so that the numbers from 0 to 3 are raised to the 2nd power
📑 Answer
1) The result is a function that creates a dictionary of functions
2)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
📑 Curly Braces inside F-strings
📑 Task 1) Will the code print out the elements of the interval? 2) What minimal changes can be made to the code to see the ...
No comments:
Post a Comment