CISC 121 Chapter 3: ThinkPython_Ch3

50 views2 pages
wunch and 39345 others unlocked
CISC 121 Full Course Notes
35
CISC 121 Full Course Notes
Verified Note
35 documents

Document Summary

Function: named sequence of statements that performs a computation. Module: file containing a collection of related functions, must import, dot notation eg. math. log10( ) Flow of execution: in order top to bottom, statements inside function don(cid:495)t run until function called. Therefore as long as everything is before function being called, we good. Stack diagrams: planning flow of execution for functions. __main__ is topmost function containing variables defined outside any function. Then the next function calls the next function and so on. List of functions: print(result) to see if you have a value. None is it(cid:495)s own type of value = nonetype. Len( ) number of characters in a string. Str( ) converts anything to a string. Float( ) converts integer into a f floater. upper() converts string to all uppercase letters. lower() converts string to all lowercase letters. Round( ) round to whole number, . 5 rounds to even number.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents