Question
Use only a while loop and python only; Write code that takes a width and a height from the user, and uses a two dimensional
Use only a while loop and python only;
Write code that takes a width and a height from the user, and uses a two dimensional loop to create a list of tiles, starting at tile 1. The driver will be unable to check if you're using a two dimensional list to solve this problem, but please do so (even though there are easier ways to do this that we've covered), in order to get the appropriate practice for this assessment. You may not use any built-in functions/methods besides len() and .append().
Template:
def create(row, column): width = row height = column #YOUR CODE GOES HERE (indented) return [] #END YOUR CODE
#Please use only a while loop
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started