I'm writing a program where I need to have numbers in a certain order with operations between them in a certain order. To illustrate, my input is 2 lists (of numbers and of operators):
number_list = [a, b, c, d]
operations_list = [+, -, *]
From these input lists, I need to slide the operators in between the numbers, keeping the same order. Like this:
a + b - c * d
*Yes, I know I can't put operators in lists like that. I'm just trying to help you guys visualize what I'm trying to do...
Thanks for any help!