In this WSQ I have fun with numbers, again! I’m sure my code can be optimized but I tried to write it as clean i.e. readable, as possible. So yeah, all I did was print some options for the user and ask for two numbers to work with. Finally, I created some functions so they are […]
This was challenging but surprisingly fun. I had some problems that were solved understanding what I was doing so the book helped me a lot.
This is my code:
This is Sumofnumbers.py in action:
This WSQ06 was quite easy, I just had to find a way in which I could get a random number so I used the function random.randint(a,b). What my program does It sets a random number between 1 and 100 and then asks the user to guess that number. I wrote it in a way that the user […]
This was quite easy since it was similar to the Fun with Numbers WSQ. In this WSQ I ask the user to choose a temperature measurement unit to convert their Fahrenheit degrees to. Once they chose it I inserted their integer input into its respective formula. I printed the conversion result and used if and elif to state […]