Welcome to the Treehouse Community
Looking to learn something new?
Daniel Santos34,969 Points
What do you mean by 'something I can use from Flask'?
So, if I create an command line application I can integrate it to a web site? I am new to python and back-end development and I don't know where to start doing things.
Ricky Catron13,023 Points
It is very easy to turn a command line application into a website in Python. The tricky part is separating the logic from the display. By this I mean you won't be printing anymore you would be instead sending the variable to the webpage so HOW you are displaying it will change but the logic will not. You will likely be able to keep most of your functions the same but you will likely need to make some changes in the display.
Alx KiPython Web Development Techdegree Graduate 14,810 Points
Just adds if name == 'main' in case if we will import this file to anywhere for using functions and database. If we import it without that block it will 'execute'.