So this:
Became this:
Because of functions.
Here is a run:
Fundamentals and Solutions. Together!
I had a little problem with this WSQ. I didn´t knew how to generate a random number on Python. So I looked on the Internet and found this link:
https://docs.python.org/2/library/random.html
Here is my code:
And here is an example run:
🙂 🙂
WSQ03 was all about integers. Here’s what my code needed to do:
Ask the user for two integer values, then use those two values to calculate and show the following:
So the first thing was to ask for the integers…
Now the printing (or outputs)…
Here is the full code:
And now, a run: