Lecture 3: Functions & Modules
Lecture 3: Functions & Modules
(Sections 3.1-3.3) CS 1110
Introduction to Computing Using Python
[E. Andersen, A. Bracy, D. Gries, L. Lee, S. Marschner, C. Van Loan, W. White]
CS1110 Spring 2018 Announcements
Check course page for announcements!
ENGRG 1010. AEW workshops still space
- can enroll through Student Center
? 1-credit S/U course ? 2-hour weekly workshop ? work on related problem sets Full? Or need a different time?
2
Things to Do Before Next Class
? Read Sections 3.4-3.11 ? If you haven't already:
? install Anaconda Python & Komodo on your machine
? play around with python a bit!
3
Function Calls
? Python supports expressions with math-like functions
? A function in an expression is a function call ? Will explain the meaning of this later
? Function expressions have the form: fun(x,y,...)
function name
argument
? Some math functions built into Python:
? round(2.34) Arguments can be
? max(a+3,24) any expression
4
Always-available Built-in Functions
? You have seen many functions already
? Type casting functions: int(), float(), bool()
? Get type of a value: type()
? Exit function: exit()
Arguments go in (), but name() refers to
function in general
? Longer list:
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- 3 main functions of corrections
- 3 functions of money economics
- 3 functions of money definition
- 3 basic functions of memory
- python 3 functions list
- 3 major functions of the skeletal system
- python 3 functions pdf
- 3 functions of cell membrane
- 3 09 exponential functions practice test
- math functions python 3 8
- unit 3 relations and functions homework 4
- unit 3 relations and functions homework