How to run this code on a site pythonanywhere

Viewed 31

I have written this simple code for a web application that I want to run on pythonanywhere instead of on my local computer.

from pywebio import start_server
from pywebio.input import *
from pywebio.output import *    
from pywebio.session import *
from pywebio.pin import *


def main():
    name = input("What is your name?")
    greetings = 'Greetings',name,'!'
    popup('Greetings', greetings)
    toast('New message ')

start_server(main, port=8080, debug=True)
0 Answers
Related