Class 30 — November 1

Part two is ending — Soon time to show mastery — Expect to do well

Functioning


Look both aways


Agenda


Accomodations


What to possibly expect for the test


Reminders


List patterns

result = ...

for element in the_list :

  ...

return result

n = len( the_list )

for i in range( 0, n ) :

  element = the_list[ i ]

  ...

  the_list[ i ] = element

  • Appends v to end of the_list
  • Removes first occurence of v from the_list
  • Index of first occurrence of v in the_list
  • Concatenates list1 and list2 to make list3

Functions

def name ( parameters ) :


Warnings


Past