generate random list and find max in list python

Solutions on MaxInterview for generate random list and find max in list python by the best coders in the world

showing results for - "generate random list and find max in list python"
Giorgia
23 Nov 2019
1import random
2import time
3
4numbers = []
5count = 10
6random.seed(round(time.time()))
7for i in range(count):
8    numbers.append((random.randint(0, 50)))
9print(numbers)
10print(f"Maximum value is {max(numbers)}")
11print(f"Minimum value is {min(numbers)}")