* Cantinho Satkeys

Refresh History
  • FELISCUNHA: Votos de um santo domingo para todo o auditório  4tj97u<z
    07 de Dezembro de 2025, 11:23
  • j.s.: tenham um excelente domingo :smiles_natal:
    06 de Dezembro de 2025, 23:36
  • j.s.: try65hytr a todos :13arvoresnatalmagiagifs:
    06 de Dezembro de 2025, 23:36
  • FELISCUNHA: ghyt74 pessoal  :34rbzg9:
    05 de Dezembro de 2025, 11:58
  • JPratas: try65hytr Pessoal  4tj97u<z classic k7y8j0
    05 de Dezembro de 2025, 04:18
  • cereal killa: try65hytr pessoaal  :13arvoresnatalmagiagifs:  RGG45wj
    04 de Dezembro de 2025, 18:51
  • Bobo2009: Os nova
    01 de Dezembro de 2025, 21:02
  • FELISCUNHA: Votos de um santo domingo para todo o auditório   4tj97u<z
    30 de Novembro de 2025, 12:06
  • j.s.: tenham um excelente fim de semana  :smiles_natal:
    29 de Novembro de 2025, 14:19
  • j.s.: dgtgtr a todos  :13arvoresnatalmagiagifs:
    29 de Novembro de 2025, 14:18
  • FELISCUNHA: ghyt74   49E09B4F  e bom fim de semana  4tj97u<z
    29 de Novembro de 2025, 11:37
  • cereal killa: try65hytr pessoal ja cheira a prendas  erfb57j p0i8l
    28 de Novembro de 2025, 22:04
  • JPratas: try65hytr Pessoal  2dgh8i k7y8j0 classic
    28 de Novembro de 2025, 05:14
  • FELISCUNHA: ghyt74  pessoal   k8h9m
    27 de Novembro de 2025, 11:42
  • j.s.: try65hytr a todos  4tj97u<z
    24 de Novembro de 2025, 20:57
  • FELISCUNHA: Votos de um santo domingo para todo o auditório  4tj97u<z
    23 de Novembro de 2025, 11:57
  • euro: Clube de Baile
    22 de Novembro de 2025, 17:55
  • cereal killa: dgtgtr pessoal inimigo  k8h9m ta um calor do karago  RGG45wj
    21 de Novembro de 2025, 15:46
  • FELISCUNHA: ghyt74   49E09B4F  e bom fim de semana  4tj97u<z
    21 de Novembro de 2025, 11:49
  • JPratas: try65hytr Pessoal  2dgh8i  classic k7y8j0 yu7gh8
    21 de Novembro de 2025, 03:37

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

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

Offline mitsumi

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