This is a practice activity that will prepare you for this module’s graded assignment. It is NOT graded but you must submit an attempt to this dropbox in order to have the solution file revealed to you. The task is to solve a problem with a Python program. After completing this activity and uploading your Python file, you will be able to view a video detailing an exemplary solutions provided by your instructor.
Two programs are required. In each program:
1. Write a Python program that uses a for loop with the range function to display the integers from 5 to 50 in increments of 5. See page 170-173 to learn about the range function. The program should also print the square and cube of each integer. Your output should print the a table with 3 columns and each column should be 7 characters wide. See page 72-73 for how to format integers. See also example output.
2. Write a Python program that prompts the user to enter an integer and reports whether the input was even or odd. Assume that the user follows instructions and enters only integers. The program must use a while loop and it should continue to execute until the user enters zero. See pages 144-146 to learn about sentinels.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more