hey how's it we're continuing with the boot camp preparation series and today we'll be doing star patterns we'll cover the square pattern the inverted mirrored triangle pattern the hollowed mirrored triangle pattern and lastly The Hollow Square pattern with diagonals let's start with the square pattern as you can see the number of rows and the number of columns are equal so for every nend row we need to print and columns we use an ested Loop to create this combination of rows and columns to make our Square pattern so for R in range and r as in row this will represent our outer loop for rows and inside this Loop we add another so for C in range n c as in column this will represent our inner loop for columns and since we want to print as many stars in our column as rows we'll run the inner loop end times next we'll display Our Stars so in each iteration print one star and override the end of our output with a space rather than a new line so now we need to add a print statement to move over to a new row after all the stars we have have been printed if we run this we get our Square pattern next up is the inverted mirrored triangle we'll follow the same procedure as we did for the square pattern but instead of printing all the stars half of the square will be made of empty spaces let's modify our Square pattern code since we have n rows our outer loop Remains the Same but our inner loop which represents the columns will have to be modified we first want to print empty spaces to occupy the left half of our Square so notice that the empty spaces gradually increase so when row number is zero we have one empty space and when row number is four we have five empty spaces so in our inner loop grou we need the range to be row + one because when row number is equal to zero + one we have one empty space and this will increment until row number is equal to 4 + 1 which makes it five we're not done yet so we need to print the stars in our other half notice that the Stars STS gradually decrease from n to one you can do this by adding another inner loop that prints the Stars we'll start from n and decrement by one in each iteration until we reach one if we run out code this will print a mirrored right triangle please like if you found this video helpful and subscribe for part two which is coming next