Answers for "simple python application"

5

how to launch an application using python

import subprocess

subprocess.Popen("C:\Windows\System32\notepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
Posted by: Guest on August-31-2021
3

python simple web app

# Core web app using flask
# Download flask if you haven't
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'

if __name__ == '__main__':
    app.run()

# If you want to put this on the internet, use something like heroku to deploy it.
Posted by: Guest on September-14-2020

Code answers related to "simple python application"

Python Answers by Framework

Browse Popular Code Answers by Language