Question: Write a python code for the above question. IMNNMON In a free class, Ms. Rita decided to have some fun activity with the students. She

 Write a python code for the above question. IMNNMON In a

Write a python code for the above question.

IMNNMON In a free class, Ms. Rita decided to have some fun activity with the students. She made a block of RxC and some chits having written 'Z, 'zig' and random values. If the student picks up the chit having Z' then first the block is printed and then he has to traverse the R XC block in z manner, if the chit has 'zig' written on it then then first the block is printed and student has to move in zigzag manner and for any other chit, print the block and then 'invalid choice' is printed. Input: (row, column,choice, values for rxc) 3 3 Z 1 2 3 4 5 6 7 8 9 Output: 123 456 789 Z traversal 1235 7 8 9 Input: Input: (row, column,choice, values for rxc) 3 4 zig 10 20 30 40 50 60 70 80 90 100 110 120 Output: 10 20 30 40 50 60 70 80 90 100 110 120 Zigzag Traversal 10 20 30 40 80 70 60 50 90 100 110 120

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!