Professional Documents
Culture Documents
Cat True Dog False Print (Type (Cat) ) : Booleans
Cat True Dog False Print (Type (Cat) ) : Booleans
Cat = True
Dog = False
Print(type(cat))
Print(first_el)
Out – True/False
Ex. Create a new list, five_hundred_list, that contains only the elements
from crime_rates that are greater than 500
five_hundred_list = [ ]
five_hundred_list.append(row)
print(five_hundred_list)
Ex. Find the largest integer in crime_rates using the strategy we just outlined, and assign that
print(crime_rates)
highest = crime_rates[0]
highest = row
print(highest)