Please provide a little more of the code for us to look over. Are those parameters to a function? Is that a variable assignment? Why is there a comma between them? How were square_width and square_height given values?
- wallyk
Hello @ArnavAvuturu and welcome to Stack Overflow! You have provided very little information and, despite the fact that you have an answer here, you should add more context to get good results on this site for your future questions. Could you add: 1. The code you use to get this error, and 2. The FULL error traceback? By providing this kind of information we will be able to help you solve more and more complex issues, without this information all we can do is guess, which only really works for simple cases.
- Hoog
1 Answers
2
votes
with not so much code and info given, the best answer to this question is:
replace your code with this. Since your code is raising a type error, then you gave wrong input. change your input to int instead of float
(int(square_width*6),int(square_height*2))
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
square_widthandsquare_heightgiven values? - wallyk