# ask the user for a series of numbers separated by spaces
num_string = input("Enter a series of numbers separated by spaces: ")

# split the string of numbers into a list
num_list = num_string.split()

# initialize the sum variable to 0
sum = 0

# iterate over the list of numbers and add them to the sum variable
for num in num_list:
    sum += float(num)

# print the sum of all the numbers
print("The sum of the numbers is:", sum) 