Skip to content

Added examples of f-string usage in 'Strings-and-Regular-Expressions.ipynb' #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

1 participant