You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, good afternoon. I was looking through all the calculator tutorials, and then I found your video on YouTube. I love your content, but I see a little mistake on line 113 and line 122
This is line 113:
113 self.current_expression = str(eval(f"{self.current_expression}**2"))
Line 113 must be:
self.current_expression = str(eval(f"{float(self.current_expression) ** 2}"))
This is line 122:
self.current_expression = str(eval(f"{self.current_expression}**0.5"))
Line 122 must be
self.current_expression = str(eval(f"{float(self.current_expression) ** 0.5}"))
Or else I think it will produce a SyntaxError. Anyway, you have one of the best calculator apps. 99/100!
The text was updated successfully, but these errors were encountered:
Hello, good afternoon. I was looking through all the calculator tutorials, and then I found your video on YouTube. I love your content, but I see a little mistake on line 113 and line 122
This is line 113:
113 self.current_expression = str(eval(f"{self.current_expression}**2"))
Line 113 must be:
self.current_expression = str(eval(f"{float(self.current_expression) ** 2}"))
This is line 122:
self.current_expression = str(eval(f"{self.current_expression}**0.5"))
Line 122 must be
self.current_expression = str(eval(f"{float(self.current_expression) ** 0.5}"))
Or else I think it will produce a SyntaxError. Anyway, you have one of the best calculator apps. 99/100!
The text was updated successfully, but these errors were encountered: