hi somebody help me please...how do you excecute programs in python IDLE...? ..please if possible show me an example coz i aint getting it on course 6.00 lesson 2
So you just need to type your commands on the script. Create a new script with a .py extension, perphaps like this; lesson2.py. Then type in your commands. Again an example below: try = raw_input('Enter a word') print try after you've done this, click on F5 in your keyboard OR click on 'Run' at the top of he script, then go to Run Module F5 and click. The command above is just a silly little program that prints whatever word you input
Don't name the variable try. try is a reserved word (it's a command). foo is a reliable variable name.
yea thanks@rsmith6559. So @gikaru you type this syntax: foo = raw_input('Enter a word: ') print foo
consider that everytime u start to ncript always go on file a create a new document and then save it when u done, after that press f5 remember that in the class the python that is has been used is the 2.7 one no the 3.4 as well
Join our real-time social learning platform and learn together with your friends!