Generation

generate functionFri, 23 Dec 2022

There is a list lst = '[0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1]' Glue it on one line without commas and spaces to get '01011110001100111'

def glue(x): str_ = '' for i in x: str_+=str(i) return str_ glue(lst)

Questions about programming?Chat with your personal AI assistant