funciones i
This commit is contained in:
parent
798220d266
commit
fc05b23930
|
@ -0,0 +1,10 @@
|
|||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def home():
|
||||
return "Hello, World!"
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
|
@ -0,0 +1,8 @@
|
|||
def say_hello(name):
|
||||
return f"Hello {name}"
|
||||
|
||||
def be_awesome(name):
|
||||
return f"Yo {name}, together we are the awesomest!"
|
||||
|
||||
def greet_bob(greeter_func):
|
||||
return greeter_func("Bob")
|
|
@ -0,0 +1,11 @@
|
|||
def parent():
|
||||
print("Printing from parent()")
|
||||
|
||||
def first_child():
|
||||
print("Printing from first_child()")
|
||||
|
||||
def second_child():
|
||||
print("Printing from second_child()")
|
||||
|
||||
second_child()
|
||||
first_child()
|
Loading…
Reference in New Issue