Question: IN PYTHON. I am more curious as to how I would do what is being asked. I.e. how to create a 2D array so that
IN PYTHON. I am more curious as to how I would do what is being asked. I.e. how to create a 2D array so that it would come out looking like [1, 2, 3], however 2 and 3 are randomly generated numbers and the number 1 counts up from 1 to 24. Hopefully that makes sense. If code can be provided I do appreciate it, if not maybe some kind of explanation will work.
Within your codes main portion, create a new 2D list representing a set of 24 experiments. The ID numbers should range from 1 to 24, but the masses and value ratings can be randomly generated. To generate random numbers in Python, you can use the randint functon from the random module:
from random import randint
# Assign x a random integer between 1 and 100, inclusive
x = randint(1, 100)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
