CECS 174 Study Guide - Comprehensive Final Exam Guide - String Theory, Monty Python, Integer

279 views61 pages

Document Summary

# the entry point for a python program is the first line of the file. # each line is read and executed by the computer, one at a time. # anything that follows the # symbol on a line is called a comment. # another name for a line of a program is a statement. # change the *state* of a program. print(cid:383)hello(cid:384) (cid:617)0(cid:616)(cid:623)\cecs (cid:616)(cid:622)(cid:619)\lectures\python\(cid:616) - introductions\hello. py (cid:616) (cid:617) (cid:618) (cid:619) (cid:620) (cid:621) (cid:622) (cid:623) (cid:624) (cid:616)0 (cid:616)(cid:616) (cid:616)(cid:617) (cid:616)(cid:618) (cid:616)(cid:619) (cid:616)(cid:620) (cid:616)(cid:621) (cid:616)(cid:622) (cid:616)(cid:623) (cid:616)(cid:624) (cid:617)0 (cid:617)(cid:616) (cid:617)(cid:617) (cid:617)(cid:618) (cid:617)(cid:619) (cid:617)(cid:620) (cid:617)(cid:621) (cid:617)(cid:622) (cid:617)(cid:623) (cid:617)(cid:624) (cid:618)0. # contrast with an expression, which does not change the state. (cid:616)(cid:616) + (cid:617) print. # print is a function: a command to python to do something in particular, in. # this case print text to the screen. We say we are calling the function of the (cid:618)(cid:616) (cid:618)(cid:617) (cid:618)(cid:618) (cid:618)(cid:619) (cid:618)(cid:620) (cid:618)(cid:621) (cid:618)(cid:622) (cid:618)(cid:623) (cid:618)(cid:624) (cid:619)0 (cid:619)(cid:616) (cid:619)(cid:617) (cid:619)(cid:618) (cid:619)(cid:619) (cid:619)(cid:620)

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