I've got a phone interview for a new devops job but they're hot on people knowing python. I've never touched it, but I've got a few days before the phone interview. How quickly could I learn it so I can say I have a basic understanding of python programming? Maybe I could convert some of my b4a games to it using the pygame library as a way to learn it?
Python is pretty neat when it comes to syntax and data structures. Has good core libraries too.
However, it is geared for certain kind of applications (and currently gamedev isnt popular), so its quite popular in devops as a glue language.
You can hopefully skim through this:
https://automatetheboringstuff.com/ and then some generic interview questions (decorators, generators, list/dict comprehensions) should be enough for the interview.
For gamedev this library seems new and interesting:
https://github.com/kitao/pyxel However you may notice its not too sophisticated either.
As with most languages, python has some shortcomings. weak-typing, interpreted, hard to get performance etc. Async is only in python3 etc, packaging.
Its really all possible in python, its just too deep and introspective so it will allow everything (dynamic attributes, hot loading etc), but will have some caveat somewhere.
Python has a certain philosophy, so it expects things to be done in a certain way called 'pythonic' (this makes it easier to learn). Also concepts like 'better to ask forgiveness' than 'check for permission' that prefers the use of Exceptions.
For an IDE, I personally use emacs (free) and PyCharm (Community edition is free) , but VS Code (free) is quite popular too.