Python Puzzles
Tuesday, April 23, 2024
📑 A Series of Variables
📑 Task
1) What will the program print for each case?
2) How to change f_string_y in the program so that variables y0, y1, y2 become global
📑 Answer
1) x0=1 x1=2 x2=4 True and y0=1 y1=2 y2=4 False
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