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 equation of the horizontal line through (1,9)?
3 What force is needed to accelerate a 0.5-kg football at a rate of 40 m/s 2?
Trees wore a dusty coat of brown A. Literal B. Figurative
Find the twenty fifth term in the sequence for which a1= -6.2 and d=2.5
who lived in qasgiq?​
Twenty-two-year-old Tawana is slightly overweight and loves to eat, particularly snack foods and rich desserts. Fearful of becoming overweight, she frequently t
Suppose that the functions q and r are defined as follows. q (x) = 2x+2 r(x) = x² +1 Find the following. (r •q)(-3) = 0 (q •r)(-3) = 0
What is the primary purpose in the text Stopping for Olympic gold by Angie Dilmore
How could you demonstrate boiling point?
According to Tulving, the defining property of the experience of episodic memory is that . Group of answer choices it involves mental time travel it always co