Strings hold text. + joins strings without inserting spaces; multiplication by an integer repeats text.
item = "tea"
label = "Hot " + item
print(label)
print("-" * 4)
Hot tea
----
The space after Hot is part of the first string. "Count: " + 3 fails because the second value is an integer. str(3) explicitly converts it to text; it does not change the original value.
An f-string makes a new string with values inserted inside curly braces. Expressions inside the braces are evaluated when the string is created.
item = "tea"
cups = 3
message = f"{item}: {cups} cups"
print(message)
tea: 3 cups
The f before the opening quote matters. message is a string even though cups is a number.
A # outside a string begins a comment; Python ignores the rest of that line. Comments can explain a reason or unit that the code does not make clear:
# Temperature is recorded in degrees Celsius.
temperature = 21
print(temperature)
21
A # inside quotes is ordinary text. Triple-quoted text is a string literal, not a comment; in specific positions it can become a documentation string, or docstring.