I'm new to programming and was asked to sum odd numbers from 1 to [2*n]-1 using a while loop. This is my attempt:
def sum_odd_n[n]:
while n
I'm new to programming and was asked to sum odd numbers from 1 to [2*n]-1 using a while loop. This is my attempt:
def sum_odd_n[n]:
while n