Usually you would use a Python IDE. Spyder (formerly IPython and included as part of the Anaconda project) is a good one. AKAIK, Qt Creator supports only C / C++ - based projects. There might be a plugin for Python, but I am not aware of it.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks