Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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,822 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'.