Exercise 7 · Chapter: For LoopsRequired+50 XP
Star Triangle
Read a number N, then print a triangle pattern with stars.
Example:
Input:
4
Output:
* ** *** ****
Hint: You can multiply strings: "*" * 3 gives "***".
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.