Robot Position Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Robot Position Python

A Robot moves in a Plane starting from the origin point (0,0). The robot can move toward UP, DOWN, LEFT, RIGHT. The trace of Robot movement is as given following:UP 5DOWN 3LEFT 3RIGHT 2The numbers after directions are steps. Write a program to compute the distance current position after sequence of movements.Hint: Use math module.

26th Sep 2019, 6:14 PM
Dushyant Shukla
Dushyant Shukla - avatar
5 Answers
+ 2
Maybe it is very easy to solve using vectors. But can you prefer posting similar quizes in Activity Feed instead?
26th Sep 2019, 6:21 PM
Seb TheS
Seb TheS - avatar
0
Ezpz why dont you show us your attempt?
26th Sep 2019, 6:36 PM
Trigger
Trigger - avatar
0
smells like a homework assignment... show us what you have tried, then we will help!
26th Sep 2019, 8:49 PM
Brave Tea
Brave Tea - avatar
0
Manhattan or Euclidean distance?
26th Sep 2019, 10:01 PM
Thoq!
Thoq! - avatar