Skip to content

Better String Interpolation

New String Interpolation#

This only applies from pytohn 3.5 onwards

    name = "surfer190"
    print("My name is {}".format(name))

Can be shortened using f

    name = "surfer190"
    print(f"My name is {name}")