Adding as many examples as I've converted so far.
This commit is contained in:
1
3 - Variables and Basic Math/Challenge/README.md
Normal file
1
3 - Variables and Basic Math/Challenge/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Build a program that requests three numbers from the user, and performs a math operation on them and prints the result
|
||||
5
3 - Variables and Basic Math/Challenge/main.py
Normal file
5
3 - Variables and Basic Math/Challenge/main.py
Normal file
@@ -0,0 +1,5 @@
|
||||
firstValue = float(input("Value 1: "))
|
||||
secondValue = float(input("Value 2: "))
|
||||
thirdValue = float(input("Value 3: "))
|
||||
|
||||
print(str(firstValue) + " / " + str(secondValue) + " - " + str(thirdValue) + " = " + str(firstValue / secondValue - thirdValue))
|
||||
Reference in New Issue
Block a user