Hi All, First day with Python - I feel so powerful already... Hahaha. But clearly I'm still an noob.
My first question would be:
In VBA i usually use Stop command to check or debug my code, is there an equivalent in python?
Better - If you download an IDE (PyCharm or Atom)
you can use an interactive debugger.
And, there are always print statements:
I often use something like:
pseudo code:
if condition:
print('whatever you want to see')
print('stop')
input()
There is also a break statement that will break out of a loop
Thanks those are valuable information, followup question.
@
Larz60+,
Pycharm is a promising editor but is the Community version enough even at intermediate level of programming?. I know I'm still a complete noob but I'm a programmer so I know there's no stopping now. I just want to look a little bit in the near future.
@
buran,
Just read about the logging tool - I'll do further research/reading.
(May-07-2017, 06:26 AM)vetabz Wrote: [ -> ]@buran,
Just read about the logging tool - I'll do further research/reading.
Sort of
Debug.Print
on steroids and a hell more customizable:-) TBH, never used Stop, when I do VBA (add break-point(s) instead if I need to debug)
The community version is fine, and I believe the only difference is that you are not allowed to sell what you make.
If you need the commercial version, single copy is only around $75 per year
(May-07-2017, 04:27 PM)Larz60+ Wrote: [ -> ]I believe the only difference is that you are not allowed to sell what you make
community edition is under Apache License 2.0 and can be used for commercial projects. see this link for example
https://intellij-support.jetbrains.com/h...on-License
And there is difference between community and professional editions:
https://www.jetbrains.com/pycharm/featur...atrix.html
I think you mix Community/Professional editions with Commercial/Personal license - there is no difference between Commercial (i.e. for businesses and organisations) and Personal (i.e. for individual developers) license