On 09/09/17 07:58, V Vishwanathan wrote:
> alert = "Today's forecast for {city}: The temperature will range
> from{low_temperature} "" to ""{high_temperature}{temperature_unit}Conditions
> will be
> {weather_conditions}".format(city,low_temperature,high_temperature,temperature_unit,weather_condi
V Vishwanathan writes:
> alert = "Today's forecast for {city}: The temperature will range
> from{low_temperature} "" to ""{high_temperature}{temperature_unit}Conditions
> will be
> {weather_conditions}".format(city,low_temperature,high_temperature,temperature_unit,weather_conditions)
> print(a
(1) Trying to convert concatenated string to .format method
(2) concatenated string >>
[#todo rewrite this line to use the format method rather than string
concatenation
alert = "Today's forecast for " + city + ": The temperature will range from " +
str(low_temperature) + " to " + str(high_temper