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()

Want to kickstart your project?Use the new AI Studio to create your code