About 50 results
Open links in new tab
  1. function error: undefined variable - Python Forum

    Apr 12, 2020 · Hi, This is my first def function and i cannot figure out why i get a, Nameerror: name 'mpg' is not defined. Any help is much appreciated!!. #!/usr/bin/env python3 def calculateMPG …

  2. compiling with an undefined variable - Python Forum

    Nov 20, 2021 · while reviewing an old function/module i coded a few years ago, i realized that variable socket.AF_INET6 would not be defined for a platform that was IPv4-only. i am concerned with how …

  3. undefined variables - Python Forum

    Sep 9, 2019 · If you are writing stuff that could screw up critical data or cost excessive amounts of money, you need to follow proper software design techniques and be careful. Randomly commenting …

  4. name "MyVariable" can be undefined - Python Forum

    Aug 20, 2020 · Hello, I am a new coder and am trying to make a short choose-your-own-adventure game in an attempt to learn the basics of python. no matter what i do, though, one of my variables …

  5. variable not defined - Python Forum

    Aug 23, 2020 · My first post. Hope it done right. Getting an error saying my variable not defined. I have tried several things and have watched at least 5 videos. Still no luck ...

  6. Global Variable Not Updating - Python Forum

    Jan 26, 2020 · Based on responses I got from previously posting a question about global variables, the following code should work. But it's not. Clearly, my understanding of how to use global variables in …

  7. NameError: name “x” is not defined ... even though x is defined

    Oct 20, 2021 · NameError: name “x” is not defined ... even though x is defined Python Forum Python Coding General Coding Help

  8. Variable not defined even though it is - Python Forum

    Mar 28, 2024 · Variable not defined even though it is Python Forum Python Coding General Coding Help Thread Rating: 1 2 3 4 5 ... Users browsing this thread: 1 Guest (s) View a Printable Version

  9. Function Attribute / Global Variable Confusion - Python Forum

    Feb 13, 2018 · Function attributes and global variables seem quite similar: def hi(): hi.bye = 50 # function attribute hi() def testing(): global ok # global variable ok = 50 testing() print(hi.bye + ok) # …

  10. input defines variable but it's not defined - Python Forum

    Jun 5, 2017 · I am just starting to learn python, and trying out a basic 'calculator' from a couple YouTube videos. I have spent the last few hours trying to figure out why a previous draft would only return 'No …