# Ausgangslage
print("You are " + age + " years old")
print("File " + filename + " has been saved")
print("Today it will be up to " + temperature + " degrees warm.")

# wird zu
print("You are {} years old".format(age))
print("File {} has been saved".format(filename))
print("Today it will be up to {} degrees warm.".format(temperature))


# Variante mit Variabel am Schluss
print("Request failed with error: " + errormsg)

# wird zu
print("Request failed with error: {}".format(errormsg))


# schwieriger
print("Connection established with host " + host + " at port " + port)

# wird zu
print("Connection established with host {} at port {}".format(host, port))
