Added Homework 04 - Strings
This commit is contained in:
parent
aad4e226c5
commit
be356ccb59
24 changed files with 315 additions and 0 deletions
9
homework/homework04/fstrings/fstrings08.py
Normal file
9
homework/homework04/fstrings/fstrings08.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import math
|
||||
|
||||
goldenRatio = (1+math.sqrt(5))/2
|
||||
print(f"{goldenRatio=}")
|
||||
|
||||
print("\n")
|
||||
|
||||
print(f"{goldenRatio = :.6f}")
|
||||
print(f"{(1+math.sqrt(5))/2 = :.6f}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue