Skip to content
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

Replace format operator with f-strings #424

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Conversation

jncraton
Copy link
Contributor

@jncraton jncraton commented Sep 29, 2023

This change replaces the format operator section of the strings chapter with a section covering the basics of f-strings.

The goal is to introduce the more modern approach to string formatting that will hopefully be more readable and less error prone for learners.

This is related to, and supersedes, issue #130 relating to replacing the % operator with the .format method.

This change replaces the format operator section of the strings chapter with a section covering the basics of f-strings.

The goal is to introduce the more modern approach to string formatting that will hopefully be more readable and less error prone for learners.
@csev csev merged commit 5c63f34 into csev:master Sep 30, 2023
@csev
Copy link
Owner

csev commented Sep 30, 2023

Thank you. We are going through a process of modernizing the book - this fits right in.

@jncraton jncraton deleted the patch-5 branch September 30, 2023 16:01
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