Question: numrows = 3 numcols = 3 for row in range ( numrows ) : if i % 2 = = 0 print ( *
numrows
numcols
for row in rangenumrows:
if i
print end
print
Modify the code in PracTestpy see on right to:
Correct any errors get the given code working
Print alternating and characters see sample output on right
On each row, use a for loop to print the required or characters
Add to code to have the user enter the number of rows and columns
For each user entry, test that it is in a valid range, use a loop to
ask them to reenter the year and continue looping until it is valid, You can
assume the user enters an integer
After printing the grid, ask the user to enter a row and column within the grid
validate that the numbers are in range counting from zero
Print the grid again with an X in that position
Test your code with valid and invalid entries
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
