CMPT 120 Chapter Notes - Chapter 2: Text Editor

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

Document Summary

You can start up python and start typing in python code. It will be executed immediately, and you will see the results. Can also type python code into a file and save it. Then, you can run it all at once. The interactive interpreter is generally used for exploring the language or testing ideas. Python code in a file can be run as an application and even double-clicked to run your program. When you start the python interpreter, you"ll see something like this: Whenever you see it in the interpreter, you can type python commands. When you press return, the command will be executed and you will be shown the result. Here"s what it looks like in the python interpreter: The stuff after the prompt is the first line of python code you have seen. You could have also typed it into a text editor, named the file hello. py and run it.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions