CSC108H5 Study Guide - Final Guide: Decimal Mark

395 views14 pages
12 Dec 2018
School
Course
Professor
897wjface and 39475 others unlocked
CSC108H5 Full Course Notes
12
CSC108H5 Full Course Notes
Verified Note
12 documents

Document Summary

Topics covered : numeric values, variables, assignment, identifiers, reserved words. Integer values: example: number 1, integers are whole numbers, no fractions, can be positive , negative or zero, example: >>print( x = + str(x)) x = 100. X = 100: tuple assignment , example: x, y, z = 100 , -45, 0. >>>print( x = , x , y = , y, z = , z) X = 100 y = -45 z= 0. Naming and using variable: variables can be numbers, letters and underscores, spaces are not allowed in variable names, no using python keywords as variable names, name should be short and descriptive. A string is a series of characters. Anything inside single or double quotes is a string.