CMPT 120 Chapter 2: Study Guide Readings Part 12

25 views2 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
29
CMPT 120 Full Course Notes
Verified Note
29 documents

Document Summary

If you create a new window , the window you create is a file editing window. It doesn"t have a prompt or anything else. You can type python code here and save it as a . py file. You can run a python . py file by double clicking it. You can also press f5 while editing it in idle to run it. You should use an editor window to write whole programs. Type print "hello world!" into an editor window in idle and save it as hello. py file. If you"re using windows and you run the program by double-clicking the file, the output window might disappear before you can see the results. You can stop this from happening by running the program in idle or by waiting for the user to press return before ending the program. We"ll talk about how to do that in the next topic. Add a few more print statements to your hello. py program (one per line).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents