Fireship · @fireship

Python in 100 Seconds

Uploaded October 25, 2021 · Length 2:24

Python in 100 Seconds

Summary

introduction to the python programming language, its features and applications

  • python programming language
  • python basics
  • python tutorial
  • python features
  • python applications

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    python a highlevel interpreted

  2. 0:02

    programming language famous for its

  3. 0:04

    zen-like code it's arguably the most

  4. 0:06

    popular language in the world because

  5. 0:08

    it's easy to learn yet practical for

  6. 0:10

    serious projects in fact you're watching

  7. 0:12

    this YouTube video in a python web

  8. 0:14

    application right now it was created by

  9. 0:16

    Guido van rossom and released in 1991

  10. 0:19

    who named it after Monty Python's Flying

  11. 0:21

    Circus which is why you'll sometimes

  12. 0:22

    find spaming eggs instead of Foo and bar

  13. 0:25

    and code samples it's commonly used to

  14. 0:27

    build serers side applications like web

  15. 0:29

    apps with the framework and is the

  16. 0:31

    language of choice for Big Data analysis

  17. 0:33

    and machine learning many students

  18. 0:35

    choose python to start learning decode

  19. 0:37

    because of its emphasis on readability

  20. 0:39

    as outlined by the Zen of python

  21. 0:41

    beautiful is better than ugly while

  22. 0:43

    explicit is better than implicit python

  23. 0:45

    is very simple but avoids the temptation

  24. 0:47

    to sprinkle in Magic that causes

  25. 0:49

    ambiguity its code is often organized

  26. 0:51

    into notebooks where individual cells

  27. 0:53

    can be executed then documented in the

  28. 0:55

    same place we're currently at version

  29. 0:57

    three of the language and you can get

  30. 0:58

    started by creating a file that ends in

  31. 1:01

    py or iynb to create an interactive

  32. 1:04

    notebook create a variable by setting a

  33. 1:06

    name equal to a value it's strongly

  34. 1:08

    typed which means values won't change in

  35. 1:10

    unexpected ways but Dynamic so type

  36. 1:12

    annotations are not required the syntax

  37. 1:14

    is highly efficient allowing you to

  38. 1:16

    declare multiple variables on a single

  39. 1:17

    line and Define tupal lists and

  40. 1:20

    dictionaries with a literal syntax

  41. 1:22

    semicolons are not required and if you

  42. 1:23

    use them and experience pythonista will

  43. 1:26

    say that your code is not pythonic

  44. 1:27

    instead of semicolons python uses

  45. 1:30

    indentation to terminate or determine

  46. 1:32

    the scope of a line of code Define a

  47. 1:34

    function with the def keyword then

  48. 1:35

    indent the next line usually by four

  49. 1:37

    spaces to define the function body we

  50. 1:39

    might then add a for Loop to it and

  51. 1:41

    indent that by another four spaces this

  52. 1:43

    eliminates the need for curly braces and

  53. 1:45

    semicolons found in many other languages

  54. 1:47

    python is a multiparadigm language we

  55. 1:49

    can apply functional programming

  56. 1:51

    patterns with things like Anonymous

  57. 1:52

    functions using Lambda it also uses

  58. 1:54

    objects as an abstraction for data

  59. 1:56

    allowing you to implement objectoriented

  60. 1:58

    patterns with things like classes and