i have variable var, and it is changeable how can i use raw_input and inside raw_input make a question and use this variable i.e.
raw_input
z = raw_input(\"Is
I guess the cleanest way is to use format:
format
z = raw_input("Is your age {0}?".format(var))
With raw_input, %var should also lie within the parentheses. i.e:
z = raw_input("Is your age %d" % var)
Your code should be:
z = raw_input("Is your age %d" %(var,) )