I have the following list of strings of integers:
li = ['1', '2', '3', '4', '5', '6', '7']
What does my code need to be for my output to be the following?:
1 2 3 4 5 6 7
I tried doing both:
" ".join(str(val) for val in li)
and
" ".join(li)
but both of them don't work.
I want to get rid of the brackets, the quotation marks, and the commas.