Generation

generate functionTue, 21 Mar 2023

add numbers from 1 to 1000

def add(a, b): return a + b total = 0 for i in range(1, 1001): total = add(total, i)

Questions about programming?Chat with your personal AI assistant