Python Forum
Results name is a variable itself
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Results name is a variable itself
#1
Hi
I do not remember how to proceed for the following assignment without using (hugly) local, global, and so on; the name if the function is itself a variable (it looks like the following snippet)
Thanks for refreshing my memory
Paul

NamesList = ['name1', 'name2', 'name3']
NamesList[0] = myfunction()
Reply


Messages In This Thread
Results name is a variable itself - by paul18fr - Mar-25-2022, 08:32 AM
RE: Results name is a variable itself - by ibreeden - Mar-25-2022, 09:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Search Results Web results Printing the number of days in a given month and year afefDXCTN 1 2,288 Aug-21-2020, 12:20 PM
Last Post: DeaD_EyE
  How to append one function1 results to function2 results SriRajesh 5 3,243 Jan-02-2020, 12:11 PM
Last Post: Killertjuh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020