Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ofelix03/05fe859ecefa2fb9de9e7ac0e195ec67 to your computer and use it in GitHub Desktop.
Save ofelix03/05fe859ecefa2fb9de9e7ac0e195ec67 to your computer and use it in GitHub Desktop.
Evaluating the area of the rectangle using f-strings
rec_width = 5
rec_length = 10
print(f"The area of a rectangle with {rec_length} and {rec_width} is {rec_width * rec_length}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment