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

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.

9/26/2019 6:14:22 PM

Dushyant Shukla

5 Answers

New Answer

+2

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

0

Ezpz why dont you show us your attempt?

0

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

0

Manhattan or Euclidean distance?

0

https://code.sololearn.com/cTTKCMAfjEdM/?ref=app