You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an f-string to incorporate the variables into a formatted string
introduction = f"My name is {name}, I am {age} years old. I enjoy {hobbies}. I am originally from a small town. I used to work in different fields and am now dedicated to mastering Python programming."
Print the introduction
print(introduction)
My name is Michelle Horvat, I am 38 years old. I enjoy learning Python. I am originally from a small town. I used to work in different fields and am now dedicated to mastering Python programming.