Write a function findSmallestState that figures out which state has the smallest population and returns that.
Note: this is just a reversal of the last method, without a need to pass over the first index.
```
def findSmallestState ():
file = open(getMediaPath("state-populations.csv"),"rt")
lines = file.readlines()
file.close()
minState = "None"
minPopulation = 0
for index in range(2, len(lines)):
parts = lines[index].split(",")
if parts[5].isdigit():
thisPopulation = int(parts[5])
if minPopulation == 0 or thisPopulation
minState = parts[4]
return minState
```
You might also like to view...
TLS makes use of a pseudorandom function referred to as __________ to expand secrets into blocks of data for purposes of key generation or validation.
Fill in the blank(s) with the appropriate word(s).
An e-mail client is a computer that essentially acts as a central post office for a group of people.
Answer the following statement true (T) or false (F)
Define a base class to represent a Clock.
Your class should have instance variables for hours, minutes and seconds.
If you want to rotate an object from its center point, you should ____.
A. double-click the Rotate tool B. click the Rotate tool, then use the Move keys C. click Transform, then use the Move keys D. double-click Transform