InterviewSolution
| 1. |
Solve : Python programs won't run.? |
|
Answer» I had a power outage and temperatures a bit below freezing in my home. My computer was exposed to those temps for a short while. When I started it up, Windows 7 had to repair some problems. Since then, any program I write in Python will not run in IDLE or otherwise. I have uninstalled Python and re-installed several times. I have tried to run down every piece of the program and delete it also (I might not be good at that). Still nothing. The older programs that I wrote before the recent weather work fine. Anything new will not run. My computer seems to be working fine otherwise.What version of Python do you have? This turned out to be a user error on my part. Care to share? First: I did have a syntax error. I don't remember exactly what it was. Second: I was selecting "Python shell" from the run menu equating that with "Run in shell" Third: I made that mistake only minutes after Windows performing repairs. So my line of reasoning was diverted to that. Fourth: When I re-installed Python, I upgraded and there might have been a CHANGE in appearance. Fifth: Some other excuse.Quote from: Liquidius on December 09, 2013, 06:45:49 AM First: I did have a syntax error. I don't remember exactly what it was.it was the variable name "1000s", which isn't a valid variable name. Quote from: Liquidius on December 09, 2013, 06:45:49 AM First: I did have a syntax error. I don't remember exactly what it was. Summary: I don't care about wasting everybody's TIME. Quote from: BC_Programmer on December 09, 2013, 09:24:47 AM it was the variable name "1000s", which isn't a valid variable name. Indeed. How hard is it to understand this? Variable names can be arbitrarily long. They can contain both letters and numbers, but they have to begin with a letter. Well, it was a goo read anyway. Toe Err is Human - computers never forgive.Gentlemen, it was the variable indeed, but I think there might have been some change in the Run menu from 2.5 to 2.7. That might not be the case though. I did state that I don't know much. This turned out to be a great exercise in resourcefulness. I went into 3 IRC chat rooms, emailed 2 groups, queried 3 friends, posted in a forum, did a system restore and became more familiar with a registry. Maybe you can appreciate that. Maybe, also, you can appreciate my embarrassment after discovering that I was making a beginner's mistake, and that I had wasted everyone's time as a RESULT...and, perhaps, you will note that I took the time to mark this as "resolved" and confess my ignorance. I was tired after 13 hours and agitated and in an incommunicable state. Perhaps you'll forgive. I did thank you GUYS, I think. Thanks again for the attempts. |
|