Theory of Intelligence
PYTHON PROGRAMMING•Foundations•Syntax Basics•2.3 Input, Output & f-Strings

2.3.2 f-Strings

Subtopics: Input & Output, f-Strings and Formatting Output.

2.3.2 f-Strings

F-String is a string literal that allows you to embed variables directly in the string.

PYTHON
name = "John"
age = 30
print(f"My name is {name} and I am {age} years old.")

F-String

F-String is a string literal that allows you to embed variables directly in the string.

Discuss theoretical concepts, mathematical formulas, and architectural foundations.

Supports inline code with `backticks`
No comments yet. Be the first to start the discussion!