Created
March 2, 2021 13:48
-
-
Save ofelix03/05fe859ecefa2fb9de9e7ac0e195ec67 to your computer and use it in GitHub Desktop.
Evaluating the area of the rectangle using f-strings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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