Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NameError: name ?
#1
I need to get the value of the variable below that stores a dictionary, why do I get the answer (NameError: name 'variable' is not defined) ?

Exemple :
variable['txt'] = 'welcome'
print(variable)
Reply


Messages In This Thread
NameError: name ? - by JohnnyCoffee - Feb-24-2020, 11:20 AM
RE: NameError: name ? - by buran - Feb-24-2020, 11:36 AM
RE: NameError: name ? - by JohnnyCoffee - Feb-24-2020, 12:17 PM
RE: NameError: name ? - by jefsummers - Feb-24-2020, 12:23 PM
RE: NameError: name ? - by JohnnyCoffee - Feb-24-2020, 12:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NameError: NameError: global name 'BPLInstruction' is not defined colt 7 4,421 Oct-27-2019, 07:49 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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