DAY 23(CODE INFINITY)

As we have seen a star pattern yesterday we also practice some more patterns today when I  started writing code for the pattern. I was not confident at that time but when output came I feel like I can do anything dude and frankly telling when I don't know something, I start writing no matter it is right or wrong I just write it and press enter key whatever I get , I made changes according to my need so in my thought starting is important you'll also heard first step is always the hardest with this Let's get started ...

First Pattern:

name='*'

for i in name:

      print(i,end=" ")

print('\n')

name1='**'

for i in name1:

      print(i,end="  ")

print('\n')

name2='***'

for i in name2:

      print(i,end="  ")

      print()

 Second pattern:

for i in name:

      print(i,end=" ")

print('\n')

name1=' ***'

for i in name1:

      print(i,end="  ")

print('\n')

name2='*****'

for i in name2:

      print(i,end="  ")

I personally find printing these patterns very interesting. 

Screenshot of the repel:


Link of the repel:

https://replit.com/@shwetaantil97/star-patterns




Comments

Popular posts from this blog