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