print("In 2021 the GDP of America is $22.99T")
year = 2021
country = 'America'
value = 22.99
print('In ' + str(year) + ' the GDP of ' + country + ' is $' + str(value) + 'T')
print('In %d the GDP of %s is $%.2fT' % (year, country, value))
print('In {} the GDP of {} is ${}T'.format(year, country, value))
print('In {0} the GDP of {1} is ${2}T'.format(year, country, value))
print('In {year} the GDP of {country} is ${value}T'.format(
year=year, country=country, value=value
))
data = {'year':year, 'country':country, 'value':value}
print('In {year} the GDP of {country} is ${value}T'.format(**data))
print(f'In {year} the GDP of {country} is ${value}T')