Challenge Solution
Challenge Solution
There are two different ways to solve this presented below.
X = 5
Y=10
Z=15
total=X+Y+Z
print(total)
print(5+10+15)
If you aren’t going to be using variables again, then the second method is a lot better, it cuts down the lines of code.
Congrats on finishing the first lesson! Next up we will work through a simple tax problem. Below is the full source code.