Question #237987

an * charcter in 4 times so how do i print print same in another time



Expert's answer

def characterPrint(n):
    for i in range(0, n):
        print("* ", end='')
print("* character 4 times")
characterPrint(4)
n = int(input("\nEnter the number of times to display *: "))
characterPrint(n)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS