There 's an invalid syntax error but i don't know what's wrong with it.
the error says
Invalid syntax: print variation_strin g
the error says
Invalid syntax: print variation_strin g
Code:
import itertools
variations = itertools.product('ab', repeat=4)
for variations in variations:
variation_string = ""
for letter in variations:
variation_string += letter
print variation_string
Comment