I was trying to run my code through the online textbook we have and though it mostly have the same output it's telling me there is a new line that's not supposed to be there and I don't know how to get rid of it.
this is what i wrote:
user_input = input()
user_split = user_input.split()
int_input = [int(i) for i in user_split]
non_negs = [i for i in int_input if i>=0]
non_negs.sort()
non_negs_str = [str(i) for i in non_negs]
desired_output = (' '.join(non_negs_str))
print(f'{desired_output}')
i also tried:
print(f'{desired_output} ')