Skip to content

Conversation

akhaund
Copy link

@akhaund akhaund commented Nov 23, 2020

Added examples of f-string usage to string formatting section.
1.
f"The value of pi is {pi}"

first, last = 'A', 'Z'
f"""First letter: {first}. Last letter: {last}."""

f"pi = {pi:.3f}"

print(f"{pi=}")

Added examples of f-string usage to string formatting section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants