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
Nimfa-mama [501]
3 years ago
8

Write a Python program to print the multiplication table of 4​

Computers and Technology
1 answer:
garri49 [273]3 years ago
8 0

Answer:

multiplier = 0

while multiplier <= 12:

   print(f'4 times {multiplier} = ' + str(4 * multiplier))

   multiplier += 1

Explanation:

The multiplier is just a variable

while the variable is equal to or less than 12, the program will print "4 times (multiplier value) = (4 times the multiplier value)"

the multiplier value then is increased each time the while loop is completed(which is 12 times)

And when the multiplier value is equal to 12, the program will stop, hope this helps! A simpler version would just be

multiplier = 0

while multiplier <= 12:

   print(4 * multiplier)

   multiplier += 1

You might be interested in
What OBD-II term applies when all enabling standards for a specific diagnostic trouble code (DTC) are met?
mash [69]

Answer:

Option C i.e., Trip criteria is correct

Explanation:

The concept Trip criteria are described that when the allowing requirements for its diagnostic code are reached.

In other words, Trip seems to be a key-on method where all the allowing requirements for such a specific diagnostic display are fulfilled as well as the diagnostic monitoring is powered. It is finished once the ignition switch becomes switched off.

  • Option A and Option B are not correct because they are the engines that come under the performance ignition system and they are not related to the following scenario.
  • Option D is incorrect because it is the type of data mining that is not related to the scenario.
3 0
4 years ago
A​ client-server application that requires nothing more than a browser is called​ ________.
goblinko [34]
Hello  <span>Tacobell5401</span>

 Answer: A​ client-server application that requires nothing more than a browser is called​  thin-client application


Hope this helps
-Chris
3 0
3 years ago
Read 2 more answers
Consider bears = {"Grizzly":"angry", "Brown":"friendly", "Polar":"friendly"}. Can you replace #blank# so the code will print a g
Goshia [24]

Answer:

bears = {"Grizzly":"angry", "Brown":"friendly", "Polar":"friendly"}

for bear in bears:

   if bears[bear] == "friendly":

       print("Hello, "+bear+" bear!")

   else:

       print("odd")

Explanation:

A dictionary called bears is given. A dictionary consists of key-value pairs.

You need to check each key-value pairs in bears and find the ones that have "friendly" as value using a for loop and if-else structure. In order to access the values of the dictionary, use the dictionary name and the key (inside the loop, the key is represented as bear variable). If a key has a value of "friendly", print the greeting. Otherwise, print "odd".

6 0
3 years ago
A _______ is a hierarchical list of folders that shows the arrangement of data stored on a windows computer.
olasank [31]

A directory tree is a hierarchy of directories that consists of a single directory, called the parent directory or top level directory, and all levels of its subdirectories (i.e., directories within it).

For more information :)
http://www.linfo.org/directory_tree.html
4 0
3 years ago
A file named data.txt contains an unknown number of lines, each consisting of a single integer. Write some code that creates two
dmitriy555 [2]

Answer:

I am doing it with python.

Explanation:

nums = '9 -8 -7 -6 -5 -4 -2 0 1 5 9 6 7 4'

myfile = open('data.txt', 'w')

myfile.write(nums)

myfile.close()

myfile = open('data.txt', 'r')

num1 = (myfile.read())

num1 = num1.split()

print(num1)

print(type(num1))

for x in num1:

   x = int(x)

   if x < 0:

       minus = open('dataminus.txt', 'a')

       minus.write(str(x) + ' ')

       minus.close()

   elif x>= 0:

       plus = open('dataplus.txt', 'a')

       plus.write(str(x)+' ')

       plus.close()

8 0
3 years ago
Read 2 more answers
Other questions:
  • Hanging out with friends, watching your favorite TV show, and buying a pair of new shoes are all examples of _____ for doing wel
    5·2 answers
  • The next generation ip version and successor to ipv4 is called what? ipv5 ipv6 iana ssl
    13·1 answer
  • python This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defi
    5·2 answers
  • Which of the following statement is False? 1 point Context free language is the subset of context sensitive language Regular lan
    5·1 answer
  • 9. Which of the following is the<br>leading use of computer?​
    13·1 answer
  • Drag the tiles to the correct boxes to complete the pairs.
    13·1 answer
  • Write if true or false
    12·1 answer
  • Pls help... : Slide layouts can be changed by _____.
    9·1 answer
  • What is the output for the following program?
    6·2 answers
  • Please help me with these questions​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!