Answer to Question #237987 in Python for balu

Question #237987

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



1
Expert's answer
2021-09-16T13:01:45-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS