This video is on Python Programming . In this video I have show about pattern Printing using python. This video will help you to learn python. I have show python programs for pattern printing.
hey mate I am currently learning python programming but I am kinda stuck with one of the patterns it is asking me to do as a nested loop.
I have no trouble making the pattern in the program below.
for r in range (1, 8):
for c in range (r):
print (‘ ‘, end=”)
but I am having a really hard time trying to work out how to write the programming for the pattern below.
Please help me I’m pulling my hair out.
Might this will work for you
print “*\n” + “\n”.join([“* *”]*5)
replace 5 with number of lines you want.
tanks for you help,
i would like to print a rectangle of # like that:
it is possible in python ?
thanks a lot
Your email address will not be published. Required fields are marked *
Current ye@r *
Leave this field empty