* Cantinho Satkeys

Refresh History
  • henrike: try65hytr  XAU
    27 de Maio de 2026, 22:09
  • j.s.: try65hytr s todos  49E09B4F
    27 de Maio de 2026, 21:06
  • cereal killa: dgtgtr  r4v8p 43e5r6
    27 de Maio de 2026, 14:47
  • Cass: Bad religion
    26 de Maio de 2026, 03:00
  • JP: dgtgtr Pessoal 4tj97u<z 2dgh8i k7y8j0 yu7gh8
    25 de Maio de 2026, 19:33
  • FELISCUNHA: Votos de um santo domingo para todo o auditório  4tj97u<z
    24 de Maio de 2026, 11:14
  • JP: try65hytr Pessoal  4tj97u<z 2dgh8i k7y8j0  classic
    22 de Maio de 2026, 05:50
  • FELISCUNHA: ghyt74  pessoal   49E09B4F
    21 de Maio de 2026, 11:42
  • JP: try65hytr Pessoal  4tj97u<z 2dgh8i k7y8j0 yu7gh8
    21 de Maio de 2026, 05:12
  • cereal killa: try65hytr malta  4tj97u<z 2dgh8i
    20 de Maio de 2026, 23:14
  • FELISCUNHA: ghyt74   49E09B4F  e bom fim de semana   4tj97u<z
    16 de Maio de 2026, 11:36
  • j.s.: tenham um excelente fim de semana  4tj97u<z
    15 de Maio de 2026, 20:53
  • j.s.: try65hytr a todos  49E09B4F
    15 de Maio de 2026, 20:52
  • JP: try65hytr Pessoal 4tj97u<z 2dgh8i k7y8j0 yu7gh8
    15 de Maio de 2026, 05:52
  • FELISCUNHA: ghyt74 pessoal   4tj97u<z
    14 de Maio de 2026, 11:31
  • cereal killa: try65hytr pessoal  49E09B4F 2dgh8i
    13 de Maio de 2026, 21:15
  • nsama71: uhf
    11 de Maio de 2026, 05:57
  • FELISCUNHA: ghyt74  votos de um santo domingo para todo o auditório  4tj97u<z
    10 de Maio de 2026, 11:02
  • j.s.: bom fim de semana   4tj97u<z
    09 de Maio de 2026, 20:41
  • j.s.: try65hytr a todos  49E09B4F 49E09B4F
    09 de Maio de 2026, 20:41

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

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

Offline mitsumi

  • Sub-Administrador
  • ****
  • Mensagens: 132583
  • 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