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

determine whether the function has a maximum or minimum value. f(×)= x^2+9
What company management strategy was used to suppress the Homestead Strike?
how acids cause burns. Please explain
Solve the equation on the interval [0,2pi). 2sin^2x=-3sinx+5
A cereal  manfunction puts a 50 cent coupon in every eighth box and a fee coupon in every hundredth box.What is the first time you would both coupons in the sam
Energy from various sources is considered to have been derived from sun.Do you agree?Do justify.
What are the uses of Electricity in our every day life?
what is difference between atoms and molecules?
how many grams of aluminum sulfide can form from the reaction 9.00 g of aluminum with 8.00 g of sulfur
Which of the following statements about ice melting is true?A) Energy flows from the ice to its surroundings.B) Water molecules move from their fixed positions.
good job