#!/usr/bin/env python3importsysdefmain(n):# The format we want (a binary string of a given length)fmt=f'0{n}b'# Make a list with all possible binary valuesl=[format(x,fmt)forxinrange(2**n)]# Show the listprint(*l,sep=', ')if__name__=='__main__':main(int(sys.argv[1]))