Question: 1. Explain in plain English what the following code does. Be as specific as possible. 10 points for i in range (0,100,10) : print(i //

1. Explain in plain English what the following code does. Be as specific as possible. 10 points for i in range (0,100,10) : print(i // 7) 2. Write code that does the following. Asks a user for a word and saves it. Determines whether the word is a pangram. If it is, the code prints YES. Otherwise, the code prints NO. (Try to be as close as you can with syntax) 15 points The definition of a pangram: a sentence that contains all the letters of the alphabet. Example: "The quick brown fox jumps over the lazy dog" yield YES "This sentence is not a pangram" yields NO 3. Write code to print all numbers evenly divisible by 3 between 0 and 100 inclusive. (Try to be as close as you can with syntax) 10 points 4. Describe the relationship between integer division (//) and remainder (\%). 10 points 5. Write code to calculate the number of minutes in the year 2018. (Try to be as close as you can with syntax) 10 points 6. List what is printed in the following code. Be as specific as possible. 10 points for i in range(5): for j in range (0,i) : print(str(i+j)) 7. Translate the following for loop into an equivalent while loop. 10 points for count in range(100): print(count) 8. Write code which asks the user for their percentage score and outputs the grade according to the following table. 15 points 9. Explain how you decide between using a for loop and a while loop. When is a forever loop (while True:) appropriate? 10 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
