import random random_numbers = [random.randint(1, 100) for _ in range(5)] print(f"Generated Random Numbers: {random_numbers}")
Output:
Generated Random Numbers: [29, 85, 44, 85, 52]
import random random_numbers = [random.randint(1, 100) for _ in range(5)] print(f"Generated Random Numbers: {random_numbers}")
Output:
Generated Random Numbers: [29, 85, 44, 85, 52]