Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

halkazi

  • 2 years ago

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?

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

    Looks like a function is returning a None value.

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

    And how would I find that out?

  3. andrew.m.higgs
    • 2 years ago
    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.

  4. msmithhnova
    • 2 years ago
    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

  5. halkazi
    • 2 years ago
    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.

  6. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

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.