CECS 174 Lecture Notes - Lecture 1: Quadratic Equation

65 views7 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(hello) # contrast with an expression, which does not change the state. # 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. # an open parenthesis always follows a function"s name. # follows the parenthesis, consisting of one or more values to give to the. Each is called an argument (sometimes called a parameter). # 4, hello is the argument to print. # any value surrounded in quotation marks is called a string.

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