funciones i

This commit is contained in:
fenix 2024-02-13 13:30:45 +01:00
parent 798220d266
commit fc05b23930
3 changed files with 29 additions and 0 deletions

10
app.py Normal file
View File

@ -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)

8
greeters.py Normal file
View File

@ -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")

11
inner_functions.py Normal file
View File

@ -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()