sita bogati
asked on
how to print the following value in the python
for eg-* !!!!! 1
** !!!! 11
*** !!! 111
**** !! 1111
***** ! 11111
** !!!! 11
*** !!! 111
**** !! 1111
***** ! 11111
You should construct a for loop and use the index as an indicator of how many stars, exclamation points and 1's you should print out. You will have to do a little bit of math with the index, but with some careful thought I'm sure you can figure it out.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.