Mar-30-2022, 12:31 AM
is there a better way (like a built-in way) to convert a named tuple to a dictionary?
def named_tuple_to_dict(t): return {n:getattr(t,n) for n in dir(t) if n[0] != '_'}
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.