Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

halkazi

All of a sudden, my Python compiler is giving a line after all my results saying "None". Looks like it is printing the value of some variable. I closed all programs and reopened, etc, but it still continues. Any clues?

  • one year ago
  • one year ago

  • This Question is Closed
  1. rsmith6559
    Best Response
    You've already chosen the best response.
    Medals 0

    Looks like a function is returning a None value.

    • one year ago
  2. halkazi
    Best Response
    You've already chosen the best response.
    Medals 0

    And how would I find that out?

    • one year ago
  3. andrew.m.higgs
    Best Response
    You've already chosen the best response.
    Medals 0

    Look through your code and check if any of your procedure are not returning. Alternately, you could paste the code so others could take a look an possibly spot the problem for you.

    • one year ago
  4. msmithhnova
    Best Response
    You've already chosen the best response.
    Medals 0

    you are likely using a print statement inside a function when you want to use a return statement

    • one year ago
  5. halkazi
    Best Response
    You've already chosen the best response.
    Medals 0

    Looks like I had accidentally uncommented one of the Comment lines way below in the template. Thanks for all the replies.

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.