Horje
generate random list and find max in list python Code Example
generate random list and find max in list python
import random
import time

numbers = []
count = 10
random.seed(round(time.time()))
for i in range(count):
    numbers.append((random.randint(0, 50)))
print(numbers)
print(f"Maximum value is {max(numbers)}")
print(f"Minimum value is {min(numbers)}")




Python

Related
py search and get objects from array Code Example py search and get objects from array Code Example
ipython history Code Example ipython history Code Example
get file arg0 python Code Example get file arg0 python Code Example
merge two netcdf files using xarray Code Example merge two netcdf files using xarray Code Example
pandas line plot dictionary Code Example pandas line plot dictionary Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7