generate functionMon, 06 Mar 2023

enter a floating point number n. Output ten numbers the total sum of which is equal to n.

def sum_of_ten(n): total = 0 for i in range(0, 10): total += n return total sum_of_ten(0.7)

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