Generation

generate functionSun, 13 Nov 2022

add eight random numbers together, then print the result

import random def add_eight_random_numbers(): result = 0 for i in range(8): result = result + random.randint(1,100) print(result) add_eight_random_numbers()

Questions about programming?Chat with your personal AI assistant