How can I write this code in one-line?
aa = 
for s in complete:
like this (be care with strings):
or with list comprehension:
aa = list(s for s in complete)
or if u want to copy list u can do follow:
aa = complete[:] aa = complete.copy() # same aa = list(complete) # same