Question: Using for loops and using the same techniques as the pyramid function, create a textsquare function that takes in two values as input: the character
Using for loops and using the same techniques as the pyramid function, create a textsquare function that takes in two values as input: the character to use in making the square, and the size of the square in characters. Then print out a square of that many characters.
>>> textsquare("t",5)
ttttt
t t
t t
t t
ttttt
Step by Step Solution
3.40 Rating (169 Votes )
There are 3 Steps involved in it
def textsquarechar size space ... View full answer
Get step-by-step solutions from verified subject matter experts
