generate functionMon, 06 Mar 2023

output ten numbers whose sum is equal to the fractional number entered from the keyboard. digits in a row do not repeat in each number. Each number must contain twelve significant digits. the numbers are positive.

def ten_numbers(x): arr = [] for i in range(0, 10): arr.append(x/10) x = x - x/10 print(arr) ten_numbers(4.32)

Questions about programming?Chat with your personal AI assistant