* Cantinho Satkeys

Refresh History
  • FELISCUNHA: ghyt74  pessoal   4tj97u<z
    05 de Janeiro de 2026, 10:33
  • Alberto: The Alan Parsons Project
    05 de Janeiro de 2026, 05:29
  • Alberto: The Alan Parsons Project
    05 de Janeiro de 2026, 05:29
  • FELISCUNHA: dgtgtr   49E09B4F  e bom fim de semana  4tj97u<z
    03 de Janeiro de 2026, 12:26
  • JPratas: try65hytr Pessoal Continuação de
    02 de Janeiro de 2026, 19:42
  • sacana10: Tenham Um Feliz Ano De 2026
    01 de Janeiro de 2026, 12:35
  • FELISCUNHA: ghyt74   49E09B4F  e bom ano  4tj97u<z
    01 de Janeiro de 2026, 10:28
  • cereal killa:
    31 de Dezembro de 2025, 19:38
  • JPratas:
    31 de Dezembro de 2025, 18:41
  • j.s.: tenham um excelente ano de 2026 43e5r6 49E09B4F
    31 de Dezembro de 2025, 17:18
  • j.s.: dgtgtr a todos  49E09B4F
    31 de Dezembro de 2025, 17:17
  • FELISCUNHA: ghyt74   49E09B4F  e bom ano de 2026  4tj97u<z
    31 de Dezembro de 2025, 11:55
  • JPratas: try65hytr Pessoal  2dgh8i k7y8j0 Continuação de Boas Festas vx4s5
    31 de Dezembro de 2025, 06:23
  • m1957: Um excelente ano de 2025 muito próspero!
    30 de Dezembro de 2025, 23:35
  • FELISCUNHA: dgtgtr  e continuação de boas festas  :smiles_natal:
    26 de Dezembro de 2025, 17:56
  • okapa:
    24 de Dezembro de 2025, 19:01
  • sacana10: A todos um feliz natal
    24 de Dezembro de 2025, 17:57
  • cereal killa: dgtgtr passei por ca para vos desejar feliz natal e familias  :smiles_natal:
    24 de Dezembro de 2025, 15:46
  • bruno mirandela: deso a todos um feliz natal
    24 de Dezembro de 2025, 14:31
  • FELISCUNHA: ghyt74   :34rbzg9:  e bom natal  :13arvoresnatalmagiagifs:
    24 de Dezembro de 2025, 10:15

Autor Tópico: Defining Main Functions in Python  (Lida 198 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline mitsumi

  • Sub-Administrador
  • ****
  • Mensagens: 129146
  • Karma: +0/-0
Defining Main Functions in Python
« em: 21 de Outubro de 2020, 10:07 »

Defining Main Functions in Python
Video: .mp4 (1920x1080, 30 fps(r)) | Audio: aac, 44100 Hz, 2ch | Size: 65 MB
Genre: eLearning Video | Duration: 4 lectures (18 mins) | Language: English

Many programming languages have a special function that is automatically executed when an operating system starts to run a program. This function is usually called main() and must have a specific return type and arguments according to the language standard. On the other hand, the Python interpreter executes scripts starting at the top of the file, and there is no specific function that Python automatically executes.

Nevertheless, having a defined starting point for the execution of a program is useful for understanding how a program works. Python programmers have come up with several conventions to define this starting point.

By the end of this course, you'll understand:

    What the special __name__ variable is and how Python defines it
    Why you would want to use a main() in Python
    What conventions there are for defining main() in Python
    What the best practices are for what code to put into your main()

Download link:
Só visivel para registados e com resposta ao tópico.

Only visible to registered and with a reply to the topic.

Links are Interchangeable - No Password - Single Extraction