03. Pattern (+15 XP)


# Line by Line


Python is run one line at a time, from top to bottom.

We can output multiple messages by using multiple print() functions:

          
          print("🙋‍♀️ Howdy!")
          print("🌻 How are you doing?")
          
        

This will output:

          
          🙋‍♀️ Howdy!
          🌻 How are you doing?
          
        

Now let’s use what we just learned to complete a special challenge!


# Instructions


Suppose we want the output to look exactly like this pattern below:

          
                 1
               2 3
             4 5 6
          7 8 9 10
          
        

How can you do that?

Create a pattern.py program that prints this pattern exactly as shown.

This will likely take some trial and error, but give it a shot!


Hint

(ー_ーゞ  This is a tricky one. Hmmm.

It's super hard to pull off using one print() function, but what if...



Back

Solution: pattern.py