"string{}".format(var)

# -*- coding: utf-8 -*-
__author__ = 'scott'

score = 100

new_str="my score is {}".format(score)
print(new_str) #my score is 100

results matching ""

    No results matching ""