CS 1110 Study Guide - Final Guide: Color Model

162 views3 pages

Document Summary

Bool- short for boolean, used to hold either true or false. List- used to store multiple values of same or different data types in an orderd set. Dict = short for dictionary, this data type stores info in key/value pairs. Int, float, and str are called immutable data because once they are set, they do not change. 2f" will give 2 decimals sep= " puts no separation between print statement and variable sep= - puts a dash before the variable. Range(10): 10 numbers starting at 0 and ending at 9. Print(number_list[0]) prints the first number in the list. Print([number_list[2:4]) will print out 2nd and 3rd not 4th. Make sure you know how to do programs on paper. Void function: simply executes the statement it contains and then terminates. A value-returning function: executes the statements it contains, and then it returns a value back to the statement that called it. Cannot use key words as a function name.

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

Related Documents