Question: PYTHON: For the running code attached i wan to put the resulting data into a array and write that array to a .txt file. Thank

PYTHON:

For the running code attached i wan to put the resulting data into a array and write that array to a .txt file. Thank u

Code:

import numpy

a = float(input("a: ")) b = float(input("b: ")) sample = int(input("Run how mmuch smaples: ")) count = 1

while count

arr = numpy.zeros(sample) for i in range(sample): arr[i] = Example() ave = numpy.average(arr) print(ave)

count += 1

PYTHON: For the running code attached i wan to put the resulting

import numpy a = float (input ("a: ") ) b = float (input ("b: ") ) sample int (input ("Run how mmuch smaple s : count = 1 ")) while count

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!