You can pass anything that evaluates the string as a parameter:
value = raw_input('Please enter a value between 10 and' + str(max) + 'for percentage')
use + to concatenate string objects. You also need to explicitly turn non-line strings into strings in order to combine them using the str () function.
source
share