I am a novice programmer and have been struggling with some simple problems for too long
The pictures are sample details

>Solution :
Assuming you’re taking user (keyboard) input, then you could do this:
indata = input('Enter some integers separated by space: ')
print(*sorted(map(int, indata.split())), sep='\n')
Output:
Enter some integers separated by space: 4 85 3 234 45 345 345 122 30 12
3
4
12
30
45
85
122
234
345
345
What this does…
Gets a string from the standard input. Split the string into tokens delimited by whitespace. Convert each token to an int. Sort the output from the map() object and print