Q:

Trying to replace a normal var with % in a print statement

Basically I'm learning some python basics and without issues executed the below:
print(var1 + ' ' + (input('Enter a number to print')))
Now I'm trying to print the output of the variable along with the string stating "You have entered" using the % method.
Have tried this apart from other code:
print(%s + ' ' + (input('Enter a number to print')) %(var)) but gives a syntax error on the %s

A:

Perhaps you mean something like this:
print('%s %s'%(var1, input('Enter a number to print')))

The %s goes inside the quotes, and indicates the position of the elements you want to insert in the string. 

