Added Homework 04 - Strings
This commit is contained in:
parent
aad4e226c5
commit
be356ccb59
24 changed files with 315 additions and 0 deletions
7
homework/homework04/input/rectangle02.py
Normal file
7
homework/homework04/input/rectangle02.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
length = float(input("Enter a value for the length: "))
|
||||
width = float(input("Enter a value for the width: "))
|
||||
|
||||
area = length * width
|
||||
|
||||
print(f"The area is {area}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue