CECS 174 Lecture Notes - Lecture 1: Quadratic Equation
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.