Question: Exercise # 3 Street Addresses ( use for loop ( s ) ) For this exercise, you will write a function to help with generating
Exercise # Street Addresses
use for loops
For this exercise, you will write a function to help with generating street
addresses in new housing developments. Create a file addressing.py with a
function generateaddresses. This function must take four arguments:
The name of the street
The lower bound of house numbers inclusive
The upper bound of house numbers exclusive
The interval between house numbers
The function must return a list of street addresses formatted with the number of
the address, followed by a single space, followed by the name of the street. For
example:
printgenerateaddressesCarrier Drive', results in:
Carrier Drive', Carrier Drive', Carrier Drive'
Additional practice on loops
You may want to practice the following not for a grade
labs from zyBooks to review for and while loops:
##
and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
