For example, I have a list of ASCII characters and want to zip them with a list of zeroes equal to the number of characters in the ASCII list,
like:
    import string
    a = string.printable
    #Gives all ASCII characters as a list ^
    b = zeroes * len(a)
    c = zip(a,b)
Something like that?
You can use a dict comprehension:
{ x:0 for x in string.printable}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With