Skip to content

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

Open
akhaund wants to merge 1 commit intojakevdp:masterfrom
akhaund:master
Open

Added examples of f-string usage in 'Strings-and-Regular-Expressions.ipynb'#28
akhaund wants to merge 1 commit intojakevdp:masterfrom
akhaund:master

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