+ 1
Hy plis help me, I've tried to find a way, but can't find it
Write a program in python to sort the values below Input: 25 22 19 36 77 50 32 Output: 19 22 25 32 36 50 77 Thank you 🥺
6 Respuestas
+ 5
First try yourself and post your attempt here
+ 5
https://stackoverflow.com/questions/11178061/print-list-without-brackets-in-a-single-row
There are several options to solve your print format problem.
+ 1
I sold try sir , like this? https://imgur.com/gallery/dkwHzDK
0
Add the values in list and then use sort function. And if you want to iterate the same, write end="" in print function
0
#Let I create a code for you.
import re
values= "25 22 19 36 77 50 32"
pattern=r"\d+"
lst=re.findall(pattern, values)
lst.sort()
for val in lst:
print(val, end=" ")