A community for students.
Here's the question you clicked on:
 0 viewing
halkazi
 3 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?
halkazi
 3 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

rsmith6559
 3 years ago
Best ResponseYou've already chosen the best response.0Looks like a function is returning a None value.

halkazi
 3 years ago
Best ResponseYou've already chosen the best response.0And how would I find that out?

andrew.m.higgs
 3 years ago
Best ResponseYou've already chosen the best response.0Look 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.

msmithhnova
 3 years ago
Best ResponseYou've already chosen the best response.0you are likely using a print statement inside a function when you want to use a return statement

halkazi
 3 years ago
Best ResponseYou've already chosen the best response.0Looks like I had accidentally uncommented one of the Comment lines way below in the template. Thanks for all the replies.
Ask your own question
Sign UpFind 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
 Engagement 19 Mad Hatter
 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.