Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Written by Jonathan Svoboda
- # Expression Generator
- numbers = [1, 2, 3]
- operators = ['+', '-', '*']
- operators2 = ['+', '-', '*']
- for i in numbers:
- for j in operators:
- for k in numbers:
- for l in operators:
- for m in numbers:
- for n in operators:
- for o in numbers:
- print(str(i) + " " + str(j) + " " + str(k) + " " + str(l) + " " + str(m) + " " + str(n) + " " + str(o))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement