Question: Can anyone show me how to code a 2d random walk in python? 1. N=500 (500steps) 2. That python code can create a .txt file

Can anyone show me how to code a 2d random walk in python?

1. N=500 (500steps)

2. That python code can create a ".txt" file that has all points' coordinates.

3. Create lists to hold points in the random walk (along with 'arrow' vectors) in the .txt file X = [] Y = [] AX = [] AY = []

*******I need a ".txt" file output with x,y coordinates in that need to be a ".txt" file**************

Thanks a lot! Plz no copy and paste from others!!!!!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!