Kevin Tiller

Generation

generate functionSat, 22 Apr 2023

Write a function that prints out every number from 0 to an input parameter n (inclusive).

def loop(n): for i in range(n+1): print(i) loop(5)

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