Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from flask import Flask
app = Flask(__name__)
def indexFn():
return '''
<h1>La calculadora de cibernóadas</h1>
Esto es una calculadora muy sencilla. Solo adminte sumas y restas.
Por ejemplo, si quieres sumar dos números tienes que navegar a <a href="/suma/100/10">/suma/100/10</a>
Por el contrario, si quieres restar tienes que navegar a <a href="/resta/100/10">/resta/100/10</a>
def sumaFn(num_a, num_b):
return "{}".format(num_a + num_b)
def restaFn(num_a, num_b):
return "{}".format(num_a - num_b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.