Ad
Code
Diff
  • def returnhundred(heydere):
        return __builtins__.__getitem__("".join(reversed(fr'''tn''' 'i'))).__call__(f'{(-2)**2:>2b}', 0o12)
    • def returnhundred(heydere):
    • return int("100")
    • return __builtins__.__getitem__("".join(reversed(fr'''tn''' 'i'))).__call__(f'{(-2)**2:>2b}', 0o12)
Code
Diff
  • import itertools
    
    def flatten(l):
        """e.g., l = [[-44, 68], [-4, 108], [0, 112], [-48, 64]]"""
        return list(itertools.chain.from_iterable(l))
    
    • l = [[-44, 68], [-4, 108], [0, 112], [-48, 64]]
    • answer = [i for j in l for i in j]
    • print(answer)
    • import itertools
    • def flatten(l):
    • """e.g., l = [[-44, 68], [-4, 108], [0, 112], [-48, 64]]"""
    • return list(itertools.chain.from_iterable(l))