""" 
Problem 2_3:
Write a function problem2_3() that should have a 'for' loop that steps
through the list below and prints the name of the state and the number of
letters in the state's name. You may use the len() function.
Here is the output from mine:
In [70]: problem2_3(newEngland)
Maine has 5 letters.
New Hampshire has 13 letters.
Vermont has 7 letters.
Rhode Island has 12 letters.
Massachusetts has 13 letters.
Connecticut has 11 letters.

The function is started for you.  The grader will not use the list newEngland
so don't use the variable newEngland inside your function.
"""
#%%
newEngland = ["Maine","New Hampshire","Vermont", "Rhode Island", 
"Massachusetts","Connecticut"]

def problem2_3(ne):
    
    for ele in ne:
        print('{} has {} letters.'.format(ele, len(ele)))

#problem2_3(newEngland)  
#%%

cd0f731c9b9effb966ff5316f7bc0d08826cfef7
<mask token>

<mask token>


def problem2_3(ne):
    for ele in ne:
        print('{} has {} letters.'.format(ele, len(ele)))

<mask token>
newEngland = ['Maine', 'New Hampshire', 'Vermont', 'Rhode Island',
    'Massachusetts', 'Connecticut']


def problem2_3(ne):
    for ele in ne:
        print('{} has {} letters.'.format(ele, len(ele)))

""" 
Problem 2_3:
Write a function problem2_3() that should have a 'for' loop that steps
through the list below and prints the name of the state and the number of
letters in the state's name. You may use the len() function.
Here is the output from mine:
In [70]: problem2_3(newEngland)
Maine has 5 letters.
New Hampshire has 13 letters.
Vermont has 7 letters.
Rhode Island has 12 letters.
Massachusetts has 13 letters.
Connecticut has 11 letters.

The function is started for you.  The grader will not use the list newEngland
so don't use the variable newEngland inside your function.
"""
#%%
newEngland = ["Maine","New Hampshire","Vermont", "Rhode Island", 
"Massachusetts","Connecticut"]

def problem2_3(ne):
    
    for ele in ne:
        print('{} has {} letters.'.format(ele, len(ele)))

#problem2_3(newEngland)  
#%%
