CISC 121 Chapter 3: ThinkPython_Ch3
![CISC 121 Full Course Notes](https://new-docs-thumbs.oneclass.com/doc_thumbnails/list_view/2588659-class-notes-ca-queens-cisc-121-lecture32.jpg)
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.