Username12345678901 Username12345678901
  • 08-08-2019
  • Computers and Technology
contestada

write a function called print_function that takes integer number as argument and prints the following pattern if input is 3

*
**
***

Respuesta :

meghna300
meghna300 meghna300
  • 08-08-2019

def print_function(x):

for i in range (x+1):

for j in range (i):

print ("*",end="")

print (" ")

return ()

Answer Link

Otras preguntas

What is the square root of 150 simplified?
1) A factory produces 12 cars in 20 days how many days will it take to make 21 cars at this rate? 2) Johnny was driving at a rate of 45 miles on his way home he
what are some of Dolley Madison's character traits?
What is the basic unit of organization of all living things
500 people fill up 4/9 of the hall. What is the seating capacity of the hall?
what Percentage of algae uses photosynthesis to make their own food
how was the Mayan society organized
A thermometer reading 5 degrees celsius is brought into a room with a constant temperature of 35 degrees celsius. a.) If the thermometer reads 15 degrees celsiu
83% of 20 is what number?
what Percentage of algae uses photosynthesis to make their own food