Added Homework 04 - Strings
This commit is contained in:
parent
aad4e226c5
commit
be356ccb59
24 changed files with 315 additions and 0 deletions
5
homework/homework04/fstrings/fstrings06.py
Normal file
5
homework/homework04/fstrings/fstrings06.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
print(f'Number\t\tSquare\t\t\tCube')
|
||||
|
||||
for x in range(1, 11):
|
||||
x = float(x)
|
||||
print(f'{x:5.2f}\t\t{x*x:6.2f}\t\t{x*x*x:8.2f}')
|
||||
Loading…
Add table
Add a link
Reference in a new issue