Question: A drawing robot is positioned at point ( 0 , 0 ) of a coordinate plane and the string 'moves' describes the path the robot

A drawing robot is positioned at point (0,0) of a coordinate plane and the string 'moves' describes the path the robot will take.
">" : moves the robot +1 in x-axis
"": moves the robot -1 in x-axis
"^": moves the robot +1 in y-axis
"v" moves the robot -1 in y-axis
Write a python function that will take the string of move commands like: ">^^>v
 A drawing robot is positioned at point (0,0) of a coordinate

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!