Python Forum
Python 3 Global Variable Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3 Global Variable Help
#5
(Jul-28-2019, 07:49 AM)Tridium Wrote: I added the argument return line to the final line of function levelone(), and when I call it I still receive the error that name is undefined

Did you call your function levelone() like this after adding "return name"?
name = levelone()
print(name)
Reply


Messages In This Thread
Python 3 Global Variable Help - by Tridium - Jul-28-2019, 03:24 AM
RE: Python 3 Global Variable Help - by ThomasL - Jul-28-2019, 06:32 AM
RE: Python 3 Global Variable Help - by Tridium - Jul-28-2019, 07:49 AM
RE: Python 3 Global Variable Help - by ThomasL - Jul-28-2019, 06:48 PM
RE: Python 3 Global Variable Help - by Windspar - Jul-28-2019, 01:31 PM
RE: Python 3 Global Variable Help - by Tridium - Jul-29-2019, 08:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Time to Update a Global Variable and Label in TkInter cameron121901 5 4,129 Apr-22-2019, 05:08 PM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

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