def cals(a, b):
c = a b
return c
result = cals(10, 20)
print(result)
I made a breakpoint at statement result = cals(10, 20)
, and then ....
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/", line 2173, in <module>
main()
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/", line 2164, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/plugins/
TypeError: an integer is required
python-BaseException
Process finished with exit code 1
CodePudding user response:
it seems to be a problem with the pycharm and not your code.
CodePudding user response:
Copy and pasting your code works fine in Visual Studio.
CodePudding user response:
There is no issue with your program. This is most likely the issue with your IDE, I would recommend reinstalling PyCharm.