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

Improve code readability and performance by using f-strings #1801

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

Conversation

Liam-hi
Copy link

@Liam-hi Liam-hi commented Apr 21, 2023

  • F-strings improve the readability
  • F-strings are often faster than concatenation because they are evaluated at runtime rather than being built up piece by piece.

Using f-strings can improve both the readability and performance. 
- F-strings make it easier to embed variables directly in the string, resulting in more concise and easier-to-read code. 
- F-strings are often faster than concatenation because they are evaluated at runtime rather than being built up piece by piece.
@CLAassistant
Copy link

CLAassistant commented Apr 21, 2023

CLA assistant check
All committers have signed the CLA.

@ubergard
Copy link

LGTM

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.

3 participants