Class Notes (837,435)
Canada (510,273)
CMPT 120 (49)
Greg Baker (15)
Lecture

Calculations and Functions

2 Pages
165 Views
Unlock Document

Department
Computing Science
Course
CMPT 120
Professor
Greg Baker
Semester
Fall

Description
9122007CMPT120Doing CalculationsWe will need to do some calculations to implement most algorithmsoeg in guessing gameguess1smallestlargest2An expression is any kind of calculation that produces a resultNumeric expressions produce a number as a resultoeg 1414100810861272231016102316102336so far all we can do with the result of an expression is print itprint 182 18we will do more with them laterexpressions can also be used to create stringsoeg CMPT120CMPT120Try twoTry twoAB3ABABABA string in Python must be in quotesoprint HiNotprint HioSingle quotes are also ok
More Less

Related notes for CMPT 120

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit