Thank you for your input :)
My goal was to create simple function which would transfer list into a string ideally (just by passing an argument to function and it would return whole list as string)
Lets say i have
I know that i can do it on many ways such as:
Usually it's written more dense:
Python Code: (Double-click to select all)
1
my_new_str = " ".join(your_list)
Thank you.. i am dumb :P
My goal was to create simple function which would transfer list into a string ideally (just by passing an argument to function and it would return whole list as string)
Lets say i have
mylist = [ABC, 123, 456]Ideally i would like to get '123456'
I know that i can do it on many ways such as:
mylist = mylist.split()[1:3] mylist = ''.join(mylist)or:
mylist = mylist[1] + mylist[2]SOLVED:
Usually it's written more dense:
Python Code: (Double-click to select all)
1
my_new_str = " ".join(your_list)
Thank you.. i am dumb :P