Robot Position Python | Sololearn: Learn to code for FREE!


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.

9/26/2019 6:14:22 PM

Dushyant Shukla

5 Answers

New Answer


Maybe it is very easy to solve using vectors. But can you prefer posting similar quizes in Activity Feed instead?


Ezpz why dont you show us your attempt?


smells like a homework assignment... show us what you have tried, then we will help!


Manhattan or Euclidean distance?