Question: 1. Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,.... 1/10. 2. Create a for loop


1. Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,.... 1/10. 2. Create a for loopscript with exactly 2 lines of code that generate a sequence ofinteger numbers starting from 2 up to (and including) 26 incremented by

1. Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,.... 1/10. 2. Create a for loop script with exactly 2 lines of code that generate a sequence of integer numbers starting from 2 up to (and including) 26 incremented by 2 (look up the range() function). Expected output: Generated number: 2 Generated number: 4 Generated number: 6 Generated number: 8 Generated number: 10 Generated number: 12 Generated number: 14 Generated number: 16 Generated number: 18 Generated number: 20 Generated number: 22 Generated number: 24 Generated number: 26 3. Complete the following code block to calculate the sum of all the integer multipliers of 11 between (and including) the number o and up to (not including) the number 10, i.e., 0 x 11+0=0 1 x 11.0-11 2 x 11+ 11 = 33 3 x 11+33-66 7 x 11 +231 = 308 8 x 11+308-396 9 11 +396 - 495 Here is a code template: 1 = 0 sum11 = 9 while j < 10: ### Place your code below this line ### ### Place your code above this line ### print('') print('Total sumll is:', sum11) Here is a code template: j = 0 sum11 = 9 while j < 10: ### Place your code below this line ### ### Place your code above this line ### print('') print('Total sumll is:', sum11) Expected output: 0 sum11: 0 j: 1 sum11: 11 j: 2 sum11: 33 j: 3 sum11: 66 j: 4 sum11: 110 j: 5 sum11: 165 j: 6 sum11: 231 j: 7 sum11: 308 j: 8 sum11: 396 j: 9 sum11: 495 Total sum11 is: 495 Exercise 4 - Encoding & Decoding You are analyzing an unstructured text dataset that contains a cluster of comments by 31 million fans on an online soccer forum about the 2018 FIFA World Cup (host nation is Russia). Using market research, the cluster of comments has been summarized into a single representative comment and provided to you in a file using the Python byte native format as follows (for your convenience, the message is: b'\xd0\x9f\xd0\xb5\xd1\x80\xd1\x83 \xd0\xbf\xd0\xbe\xd0\xb1\xd0\xb5\xd0\xb4\xd0\xb8\xd1\x82!'): b'\xd0\x9f\xd0\xb5\xd1\x80\xd1\x83 \xd0\xbf\xd0\xbe\xd0\xb1\xd0\xb5\xd0\xb4\xd0\xb8\xd1\x82! You need to decode the above message to Russian to create a report for your consulting project. Then, you need to copy and paste the Russian characters for this message into Google Translate (https://translate.google.com/) in order to translate the comment into English. Can you find out what the message says in English? Write your answer as a Python comment statement. Hint: Create a variable name and assign its value as the Python byte format message. Then use the decode() function using Unicode format as seen in class lectures. You can then follow the remaining instructions in this question to arrive at the correct English translation. How do you know you got it right? The correct answer contains three English words (written in English) and one exclamation point.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!