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
kondaur [170]
4 years ago
9

This program will output a right triangle based on user specified height triangle_height and symbol triangle_char. (1) The given

program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt) (2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts)
Computers and Technology
1 answer:
Arturiano [62]4 years ago
4 0

Answer:

See explaination

Explanation:

triangle_char = input('Enter a character:\n')

triangle_height = int(input('Enter triangle height:\n'))

print('')

for i in range(triangle_height):

for j in range(i+1):

print(triangle_char, end = " ")

print()

You might be interested in
Which leadership function involves keeping group members focused on the issue at hand?
WARRIOR [948]

Discussion management is the leadership function used to keep group members focused on the issue at hand, by making sure that the discussion does not veer off into other areas that are irrelevant to the main issue being discussed.

Let me know if you have any questions.

8 0
3 years ago
A device used to measure the pressure of an enclosed gas is a manometer.<br> a. True<br> b. False
Taya2010 [7]
Its true, check it out here 

manometer
nounan instrument for measuring the pressure acting on a column of fluid, consisting of a U-shaped tube of liquid in which a difference in the pressures acting in the two arms of the tube causes the liquid to reach different heights in the two arms.
4 0
3 years ago
A certain computer can be equipped with 268,435,456 bytes of memory. Why would a manufacturer choose such a peculiar number inst
Arte-miy333 [17]

Answer:

Computer system use Binary and it uses power of 2 only.

Explanation:

The reasons for equipping memory with a peculiar number instead of round or even number are as follows:

  • The computer system uses the power of 2 instead of the power of 10 to equipping memory and hence use a number like 250,000,000 is not possible.
  • The computer systems work on the memory where 1 MB or 1 megabyte shows as 1024 kb or 1,048,576 bytes.
  • In computer system memory capacity is always some multiply of 1024 bytes.
  • Hence, 268,435,456 bytes of memory shows 256 MB of memory.

5 0
4 years ago
Which device should be used for enabling a host to communicate with another host on a different network?
Lady bird [3.3K]
A router <span>should be used for enabling a host to communicate with another host on a different network.</span>
7 0
3 years ago
7d2b:00a9:a0c4:0000:a772:00fd:a523:0358
motikmotik

Answer:

yh3iuskjldnsjfhbcgfihekwfhei3wh8hfefbgp

Explanation:

6 0
3 years ago
Other questions:
  • How does a main program recieve info from a function in c++?
    6·1 answer
  • When a defendant pleads guilty to one offense just to have another offense dropped, this is what type of plea bargain
    12·2 answers
  • ​A(n) ________ database makes it possible to store information across millions of machines in hundreds of data centers around th
    6·1 answer
  • Convert the following Base 2 (binary) numbers to base 10(decimal):<br> 11101<br> 1010101
    13·1 answer
  • Surprisingly, many of us may be unknowing victims of botnets. Because of the rising sophistication of botnet schemes, your compu
    14·1 answer
  • PLEASE HURRYYY Suppose your employer wants you to purchase a tablet device that you will use to run the company's custom sales s
    15·2 answers
  • bro this scared me, i thought i just got hacked, could someone explain why when i went to ask a question, it kicked me out my ac
    9·2 answers
  • What are the defenses to protect against these attacks?
    13·1 answer
  • Describe what impact your personal vision could have your community or on society​
    6·1 answer
  • Deleting messages keeps them in the mailbox and on the server. How can they be removed from the server to reduce the quota?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!