Question: Besides the correctness, your program will also be evaluated based on readability ( e . g . , comments, variable names, structures, etc ) and
Besides the correctness, your program will also be evaluated based on readability eg comments, variable names, structures, etc and design of functions for only Each question carries points.
Important reminders and restrictions Points will be deducted if violating these restrictions.
This is an individual project.
You are expected to write all the code yourself.
No import statements allowed.
You have to use all the functions given.
You cannot change the doctrings of all functions and their names.
You cannot change the code in explorepaths and findallshortestpaths
You cannot use any builtin functions except print and type conversion functions.
You cannot use list comprehensions.
This assignment is for you to write genStates Use the template below and name the file midtermstates.py
CS Midterm project part
Describe the module here. Fix the lab number above and the namedate below.
@author: YOURNAME yourid
@date: semester, year
def genStates:
Generate a tuple of all states for the MCGW problem
Parameters
None
Returns
Tuple of strings
All possible states
# testing the function
printTest : All possible states"
printgenStates
The expected results are:
Test : All possible states
EEEE 'EEEW', 'EEWE', 'EEWW', 'EWEE', 'EWEW', 'EWWE', 'EWWW', 'WEEE', 'WEEW', 'WEWE', 'WEWW', 'WWEE', 'WWEW', 'WWWE', WWWW
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
