Creating Functions in Python: Python Basics

Publicado em: 01 Setembro 2022
no canal de: Real Python
3,494
100

Functions are the building blocks of almost every Python program. They’re where the real action takes place!

NOTE: This course uses Python's IDLE as an code editing tool, if comes with Python installations from python.org, but if you have questions please check out this resource.
   • Installing and Setting Up Python - Wi...  

In your Python journey, you’ve probably encountered functions such as print(), len(), and round(). These are all built-in functions because they come built into the Python language itself. You can also create user-defined functions that perform specific tasks.

Functions break code into smaller chunks and are great for defining actions that a program will execute several times throughout your code. Instead of writing the same code each time the program needs to perform the same task, just call the function!

This is a portion of the complete course, which you can find here:
https://realpython.com/courses/python...

The rest of the course covers:
Documenting your functions
Writing while and for loops


Nesta página do site você pode assistir ao vídeo on-line Creating Functions in Python: Python Basics duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Real Python 01 Setembro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,494 vezes e gostou 100 espectadores. Boa visualização!