Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Python by wepos ( 6 years ago )
def flat_list(a):
	for i in a:
		if i.__class__ == list:
			flat_list(i)
		else:
			return i


if __name__ == '__main__':
    print(flat_list([[[2]], [4, [5, 6, [6], 6, 6, 6], 7]]))

 

Revise this Paste

Your Name: Code Language: