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/fstrings/program01.py
Normal file
7
homework/homework04/fstrings/program01.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
val1 = float(input("Enter a value for val1 "))
|
||||
val2 = float(input("Enter a value for val2 "))
|
||||
|
||||
# using the addition operator
|
||||
res = val1 + val2
|
||||
print("The sum is ",res)
|
||||
Loading…
Add table
Add a link
Reference in a new issue