Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: Problem Solving & Python Programming
Description: This notes are very useful to many engineering & programmers

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


Summary
In this chapter, you learned about a couple of different data types built-in to Python
...
The string data type is composed of letters, numbers, spaces, and
punctuation
...
These
container data types include lists, tuples, and dictionaries
...

Key Terms and Concepts
data type
variable
assignment operator
integer
int
whole number
floating point number
float
scientific notation
complex number
string
boolean
bool
boolean arithmetic
boolean operators
or
and
not
data structure

dictionary
tuple
list
index
indexing
immutable
Summary of Python Functions and Commands
Built-in Data Types
Python Data
Type

Description

int

integer

float

floating point number

bool

boolean value: True or False

complex

complex number, real and imaginary
components

str

string, sequence of letters, numbers and
symbols

list

list, formed with [

dict

dictionary, formed with {'key'=value}

tuple

an immutable list, formed with (

]

)

Python Functions
Function Description
type()

output a variable or object data type

len()

return the length of a string, list dictionary or tuple

str()

convert a float or int into a str (string)

int()

convert a float or str into an int (integer)

Function Description
float()

convert an int or str into an float (floating point
number)

Python List Operators
Operator Description

Example

Result

[ ]

indexing

lst[1]

4

:

start

lst[:2]

[ 2, 4 ]

:

end

lst[2:]

[ 6, 8 ]

:

through

lst[0:3]

[ 2, 4, 6 ]

:

start, step, end+1

lst[0:5:2]

[2, 6]


Title: Problem Solving & Python Programming
Description: This notes are very useful to many engineering & programmers