10-27-2009, 09:56 PM
Hello SF.net
Thanks to this thread http://www.supportforums.net/showthread.php?tid=194 , I'm now starting to learn Python, mind you I'm still a beginner, I have had no experience with programming before, and so of course I'll have a few problems, and so I'll ask for help. I'm a fast learner, so I hope no one thinks I'm a skid that's too lazy to do anything.
That's why I've started this thread, so instead of starting a new thread every time I get an error, or I'm stuck somewhere, I'll just post in this 1 thread here asking and hopefully some people can help me.
OK with the intro done, I'm going to go ahead and ask my first question.
How do I execute files? I copied the source from here http://www.supportforums.net/showthread.php?tid=1856 (The roulette game) And pasted into the notepad-alike window and saved the file in C:\Python26 as Poker.py. I fired up shell (or I think I did) and I typed in
After I get this settled out, I hope that the rest of my python experience becomes a whole lot smoother.
PIC 1
PIC 2
Thanks to this thread http://www.supportforums.net/showthread.php?tid=194 , I'm now starting to learn Python, mind you I'm still a beginner, I have had no experience with programming before, and so of course I'll have a few problems, and so I'll ask for help. I'm a fast learner, so I hope no one thinks I'm a skid that's too lazy to do anything.
That's why I've started this thread, so instead of starting a new thread every time I get an error, or I'm stuck somewhere, I'll just post in this 1 thread here asking and hopefully some people can help me.
OK with the intro done, I'm going to go ahead and ask my first question.
How do I execute files? I copied the source from here http://www.supportforums.net/showthread.php?tid=1856 (The roulette game) And pasted into the notepad-alike window and saved the file in C:\Python26 as Poker.py. I fired up shell (or I think I did) and I typed in
Quote:execfile("Poker.py")I'm getting this error. Here are two pics of me trying to execute it in 1 computer, and the second pic on the 2nd computer. I don't know what I'm doing wrong.
After I get this settled out, I hope that the rest of my python experience becomes a whole lot smoother.
PIC 1
Spoiler (Click to View)
PIC 2
Spoiler (Click to View)