I've searched around and found similar questions, but cannot seem to figure out how to apply it to my issue. I'm creating a shape with a predefined size, but first I need to figure out how to add/multiply the "-" character by a certain number and print it within classes. Here's my code:
def __str__(self):
string = "-" * 4
return string
def main():
print(str.string)
return
main()
end goal is to create a box like this:
