chore: sync content to repo (#10051)
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
This commit is contained in:
1 parent
ca679da4eb
commit
e1b73f9bf3
3 files changed
+7
-15
No files matched your search
+2
-10
@@ -2,16 +2,8 @@
|
||||
|
||||
In programming, a function is a reusable block of code that executes a certain functionality when it is called. Functions are integral parts of every programming language because they help make your code more modular and reusable. In Python, we define a function with the `def` keyword, then write the function identifier (name) followed by parentheses and a colon.
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
def greet(name):
|
||||
print(f"Hello, {name}!")
|
||||
|
||||
|
||||
greet("Roadmap.sh")
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Built-in Functions in Python](https://docs.python.org/3/library/functions.html)
|
||||
- [@article@Defining Python Functions](https://realpython.com/defining-your-own-python-function/)
|
||||
- [@article@Defining Python Functions](https://realpython.com/defining-your-own-python-function/)
|
||||
- [@article@How to Return Multiple Values in Python (and When to Use Each Method)](https://roadmap.sh/python/return-multiple-values)
|
||||
@@ -5,7 +5,7 @@ Pydantic is a Python library for data validation and settings management using P
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Pydantic Documentation](https://docs.pydantic.dev/latest/)
|
||||
- [@article@Pydantic: Simplifying Data Validation in Python – Real Python](https://realpython.com/python-pydantic/)
|
||||
- [@video@Pydantic Tutorial – Complete Python Data Validation (ArjanCodes)](https://www.youtube.com/watch?v=XIdQ6gO3Anc)
|
||||
- [@official@FastAPI – Request Body with Pydantic](https://fastapi.tiangolo.com/tutorial/body/)
|
||||
- [@article@Pydantic V2 Migration Guide](https://docs.pydantic.dev/latest/migration/)
|
||||
- [@article@Pydantic: Simplifying Data Validation in Python – Real Python](https://realpython.com/python-pydantic/)
|
||||
- [@article@Pydantic V2 Migration Guide](https://docs.pydantic.dev/latest/migration/)
|
||||
- [@video@Pydantic Tutorial – Complete Python Data Validation (ArjanCodes)](https://www.youtube.com/watch?v=XIdQ6gO3Anc)
|
||||
@@ -6,6 +6,6 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Sanic Official Website](https://sanic.dev/en/)
|
||||
- [@official@Sanic User Guide – Getting Started](https://sanic.dev/en/guide/getting-started.html)
|
||||
- [@video@Sanic Python Framework Tutorial (Tech With Tim)](https://www.youtube.com/watch?v=w4UQkgxKuaI)
|
||||
- [@opensource@Sanic on GitHub](https://github.com/sanic-org/sanic)
|
||||
- [@article@Async Python Web Frameworks Compared: Sanic vs FastAPI vs Starlette](https://testdriven.io/blog/fastapi-vs-flask/)
|
||||
- [@opensource@Sanic on GitHub](https://github.com/sanic-org/sanic)
|
||||
- [@video@Sanic Python Framework Tutorial (Tech With Tim)](https://www.youtube.com/watch?v=w4UQkgxKuaI)
|
||||
Reference in new issue
Block a user