Posts by Felipe Mercês • 11 points
1 post
-
1
votes1
answer53
viewsQ: How to modify a variable within a definition without globalizing the variable?
I need to modify a variable within a definition without globalizing the variable because then I can use the same definition with different variables. I’ve tried the following code: >>> n =…
pythonasked Felipe Mercês 11