Home /
Expert Answers /
Computer Science /
python-programming-nbsp-a-self-driving-car-is-training-to-find-its-home-on-its-own-it-started-from-pa977
(Solved): python programming A self-driving car is training to find its home on its own. It started from ...
python programming
A self-driving car is training to find its home on its own. It started from an original point (0). The car can only move toward UP, DOWN, IEF, and RIGHT. The car has lost contact with the servers. The server log files show the following route: UP 5 DOWN3 LEFT 3 RIGHT 2 The numbers after the direction is the distance travelled in that direclion (in KiloMeters). Please write a program that can compute the distance of the car from the original point. If the distance is a float, then just print the nearest integer. Someone worked on the half-cooked code below. Your task is to improve it and linish it. import math pos \( =[0,0] \) while True: \( s= \) raw inputi) if not \( s \) : break movement = s.splite ( ) direction = movement[0] steps = int (movement[1])