sporting06
27.10.2020 •
Computers and Technology
4.9 Code Practice: Question 1 [Intructions shown]
Instructions:
Write code using the range function to add up the series 3, 6, 9, 12, 15, ..... 66 and print the resulting sum.
Expected Output
759
Solved
Show answers
More tips
- F Food and Cooking How to Make Napoleon Cake: A Step-by-Step Guide...
- F Food and Cooking From Latte to Espresso: Which Coffee Drink is the Most Popular on Earth?...
- C Computers and Internet How to Set Up Internet on iPhone? Detailed Guide with Step-by-Step Instructions...
- P Philosophy 8 привычек, чтобы достичь счастливой жизни...
- F Food and Cooking How Many Grams Are In a Tablespoon?...
- G Goods and services How to Choose the Right Iron: Purchase Tips...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- H Health and Medicine How to Choose the Right Glasses?...
- H Health and Medicine What vaccines do children need?...
- H Health and Medicine AKDS Vaccination: Ensure Your Child s Safety...
Answers on questions: Computers and Technology
- E English When does the tragedy of antigone reach its peak?...
- M Mathematics In the first 3 months of the year, an electronics store sold 1,446 cameras. How many cameras did the store sell in March? Write and solve an equation....
- M Mathematics So can someone like pls help me what s -20×-18=...
- H History In which decade was india most economically successful?...
Ответ:
The required program written in python 3 which sums the values in the series given with a common difference of 3 is :
sum = 0
#initialize a variable which holds the sum of the series to 0
for num in range(3, 69 ,3):
#use a for loop to pick each value in the series using the range function
sum+=num
#for each number picked, add the value to the initialized sum variable
print(sum)
#display the resulting sum
The third argument in the range function is the amount of step the loop takes, which corresponds to the common difference of the series.Therefore, the resulting output of the program is attached below.
Learn more :link
Ответ:
In python:
total = 0
for x in range(3, 67, 3):
total += x
print(total)
I hope this helps!
Ответ:
SD
Explanation:
As a general rule of thumb you'll need at least a Class 4 card to record Full HD video but it's probably best to go for Class 10 for most uses. To cater for the large amounts of data required for shooting 4K, 360 degrees and 8K video there is now a V Class rating, which was created by the SD Association