Section 1

Preview this deck

list format

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (9)

Section 1

(9 cards)

list format

Front

['list', 'format']

Back

add 'toyota' to a list of cars

Front

cars.append('toyota')

Back

making a new line

Front


Back

for loop of pizza

Front

pizzas = ['pepperoni', 'cheese', 'vegetarian''] for pizza in pizzas: print(pizza)

Back

list comprehension

Front

square = [value**2 for value in range(1,11)] print(square)

Back

"pop" an item off the stack of list 'cars'

Front

cars.pop()

Back

delete 3rd item from list "cars"

Front

del cars[2]

Back

how to access python document 'hello.py'

Front

cd Documents/python python 3 hello.py

Back

format for listing a range adding 4 to each value

Front

numbers = list(range(2,50,4))

Back