I tried to type this:
quilt_width = 8 quilt_length = 12 print("total squares needed:" + quilt_width * quilt_length )
To show the value in the same line as the text without using 2 prints.
And I got the following error:
Traceback (most recent call last): File "script.py", line 3, in <module> print("total squares needed:" + quilt_width * quilt_length ) TypeError: Can't convert 'int' object to str implicitly
I’m not sure what I did wrong. What is the correct syntax to achieve what I wanted?
Am I getting ahead of myself and this is something I will learn down the line?