CMSC201 Computer Science I for Majors

嚜澧MSC201

Computer Science I for Majors

Lecture 19 每 Modules and

※Random§ Numbers

All materials copyright UMBC unless otherwise noted

umbc.edu

Last Class We Covered

? What makes ※good code§ good

每 Commenting guidelines

? Top down design

? Code implementation

每 Bottom up

每 Top down

每 Incremental development

2

umbc.edu

Any Questions from Last Time?

3

umbc.edu

Today*s Objectives

? To learn about Python*s Standard Library

? To understand modules and importing

每 Syntax

每 Purpose

? To learn about ※random§ numbers

每 Pseudo randomness

4

umbc.edu

Python*s Standard Library

? The ※standard library§ is made up of two parts

? The ※core§ of the Python language

每 Built-in types and data structures (int, list, etc.)

每 Built-in functions (min(), max(), etc.)

? Optional modules the programmer can import

每 Math things like fractions and random

每 Useful pieces like datetime and calendar

5

umbc.edu

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download