Question: EASY PYTHON - A drunkard in a grid of streets randomly picks one of four directions and stumbles to the next intersection, then again randomly
EASY PYTHON - A drunkard in a grid of streets randomly picks one of four directions and stumbles to the next intersection, then again randomly picks one of four directions and so on. You might think that on average the drunkard doesn't move far because the choices cancel each other out but this is not the case. Represent locations as integer pairs (x,y). Implement the drunkard's walk over 100 intersections, starting at (0,0) and printing the end location
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
