function = input('Enter function')
a = input('do you want to enter another function')
b = [function]
if a.lower() == 'yes':
while True:
function1 = input('Next Function')
b += function1
if function1 == 'quit':
break
print(b)
in this code if I input in function1: y = 9x + 1; it will put the values in the array, but in the format: 'y', ' ', '9x', ' ', '+', ' ', '1'
.
how do save the input as y = 9x + 1'?
Also when I write quit, it prints the array, but the final value is q','u','i','t'
.
How do I eliminate those values?