I'm looking for the syntax I would use to print both text and a saved int in the input function. I'm making a program that asks the user math questions using dynamic terms, and I want to be able to print those and some text on the same line.
I've tried this code, hoping that the parameters would be represented like it were a print statement:
answer = int(input(oneTerm, '+', twoTerm, '='))
I also tried using two lines like this:
print(oneTerm, '+', twoTerm, '=')
answer = int(input(''))
But the problem with this is the input is accepted on the line below the print statement, but I need it to be on the same line.
Any help is greatly appreciated!