At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
If you're using IDLE(Python GUI), just hit F5 or choose Run Module from the Run tab, and call the function you want to test in python shell (just type its name with parameters).
If you haven't found IDLE yet, it's tucked away in the "idlelib" folder in "Lib", inside your Python folder. I'm using Windows, so mine was the Windows batch file called "idle". If there's a more obvious way to open it, I haven't found it. Once you do that, you can go into the File tab there and open a new window, where you can write and execute programs. You can run your program just as karim described.
I was frustrated with this at first too as they didn't seem to mention this detail in the lectures or I missed it. Slightly important detail.
Not the answer you are looking for? Search for more explanations.
You should be able to open a console and enter
You don't have to use IDLE to run a script.
Thanks everyone! Yeah, I'm pretty new. I didn't reallize I had to write programs in a new window. I thought I could write them in the shell. But now I'm a total pro and on to ps1! ;)
Whew, thanks for asking this Rachel! I came back here after about 50 minutes of reading the wiki to find out I need to open a new window and not run it in the console window! I am thinking this is a bad sign for me already lol
Well, I didn't. So you shouldn't worry about it either :)
Had the same probl ;) here's the code for my problem set 0: http://dpaste.com/800737/
But when i run it after i saved as a new file, the last print statment runs so fast one can hardly say that it displays name and age so im not sure if i solve it or not..