1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
-BARSIC- [3]
3 years ago
11

Let's get into some looping. Sometimes it is nice to generate your own data. Now let's take our first stab at it.

Computers and Technology
1 answer:
valkas [14]3 years ago
3 0

Answer:

55

Explanation:

You might be interested in
Write a script that calculates the common factors between 8 and 24. To find a common factor, you can use the modulo operator (%)
AnnyKZ [126]

Answer:

  1. common = []
  2. num1 = 8
  3. num2 = 24
  4. for i in range(1, num1 + 1):
  5.    if(num1 % i == 0 and num2 % i == 0):
  6.        common.append(i)
  7. print(common)

Explanation:

The solution is written in Python 3.

Firstly create a common list to hold a list of the common factor between 8 and 24 (Line 1).

Create two variables num1, and num2 and set 8 and 24 as their values, respectively (Line 3 - 4).

Create a for loop to traverse through the number from 1 to 8 and use modulus operator to check if num1 and num2 are divisible by current i value. If so the remainder of both num1%i and num2%i  will be zero and the if block will run to append the current i value to common list (Line 6-8).

After the loop, print the common list and we shall get [1, 2, 4, 8]

8 0
3 years ago
Importance of software in computer
Juli2301 [7.4K]

Answer:

Computer hardware is virtually useless without computer software. Software is the programs that are needed to accomplish the input, processing, output, storage, and control activities of information systems.

Explanation:

4 0
2 years ago
Read 2 more answers
Which audio file type was created specifically for use on the Internet?
faltersainse [42]
I believe MP3 like 89% sure
6 0
3 years ago
Read 2 more answers
How can I get more views on my you tube channel "Braeden Eischen" without paying anything
ehidna [41]
I’m just post video and there
5 0
2 years ago
One suggested means of gaining eye contact before reversing is to:____.
Orlov [11]

Answer:

<u>hit the vehicle horn</u>

<u>Explanation:</u>

Remember, a driver reversing may easily go unnoticed by pedestrians as the driver may be coming from behind. Thus, a suggested means of gaining the eye contact of pedestrians before reversing is to hit the vehicle horn.

5 0
3 years ago
Other questions:
  • Why do you feel an organization has multiple layers of security in place to protect its operation?
    5·1 answer
  • Who is the last person appointed to the u.s supreme court
    11·1 answer
  • in cell h5, enter a formula that will calculate the percentage of attendees that went to the Altamonte springs job fair in 2018.
    15·2 answers
  • The website of an international human rights organization stores a large database of information and provides search functionali
    15·1 answer
  • What command is most effective at identifying different types of files?
    6·1 answer
  • Match the crew members with the equipment or tasks they handle.
    12·1 answer
  • Who has gotten a random file link from someone? What file does it contain?
    8·2 answers
  • Letter only ^_____^!
    8·1 answer
  • In a spreadsheet, what is text wrapping used for?
    15·1 answer
  • What is the significance of the scientific method?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!