+ 1

Why doesn’t this work?

Hey guys I’m new at coding, and I made this program to list a couple of exponents. I don’t quite understand why the program is giving an error under the “while” function. https://code.sololearn.com/cLiB3sGynIvZ/?ref=app

19th May 2018, 2:51 AM
Vincent McGovern
Vincent McGovern - avatar
4 Respostas
+ 7
Parenthesis mismatch on Line 41. Missing closing parenthesis.
19th May 2018, 2:55 AM
Hatsy Rei
Hatsy Rei - avatar
0
Ok. I did “(int(num)) * (int(num))” and found it works just as well, on account of it already being an integer.
19th May 2018, 3:20 AM
Vincent McGovern
Vincent McGovern - avatar
0
Makes sense. Thanks for the help!
19th May 2018, 3:42 AM
Vincent McGovern
Vincent McGovern - avatar
0
(str(num) * str(num)) change line 41 to this..You already knew the problem but you may had forgotten,so this is the thing you're supposed to change
19th May 2018, 6:19 AM
Vikaash
Vikaash - avatar