How to Code PYTHON: *Create and Import Module*

Publicado el: 17 febrero 2021
en el canal de: Coding With Kids
124
4

Let's get started! 🔥🔥🔥 In this video, we will write few PYTHON 🐍 scripts to demonstrate how to define a module to hold one or more functions ♻️. In this tutorial, we add code to create a deck of cards 🃏🤏 in the new deck module. Next in a different code file, we import the deck module and then call the create_deck() method of the deck module. You will learn some basics in less than 5 minutes!

In this video, you will learn how to:
★ 0:07 Create a deck module to separate out reusable code in a modular way
★ 1:29 Use the import statement to access a module's functions

Tips and Tricks:
► A Python module is simply a code file containing files, constants, or services. Creating a module lets us separate out reusable code in a modular way. By placing functions in a module, we make that code usable from other code files both inside and outside our programs. We can use the import statement to access a module's functions.
► We can split a program into multiple code files to increase code modularity and reuse across the entire program.
► Modules even let multiple programs share the same code.
► We can import modules in the first lines of code.

WATCH MORE PYTHON TUTORIALS 🐍
   • 🐍 Python Coding for Beginners  

For the setup, please read the followings before you begin:
1. Download latest Python: https://www.python.org/downloads/
2. Install Python and remember to select "Add Python... to PATH" when asked.
3. Download and install latest Visual Studio Code: https://code.visualstudio.com/Download
4. Install the Python extension for Visual Studio Code: Go to View and select Extensions, or select the Extensions icon, then search for python.

Python - a programming language used by world-class companies such as Amazon.com, Alphabet (Google), Facebook, Twitter, and NASA.

👇 SUBSCRIBE TO CODING WITH KIDS 👨🏻‍💻👩🏻‍💻 YOUTUBE CHANNEL NOW 👇
https://youtube.com/CodingWithKids?su...

#CodingWithKids #PythonProgramming #PythonForBeginners


En esta página del sitio puede ver el video en línea How to Code PYTHON: *Create and Import Module* de Duración hora minuto segunda en buena calidad , que subió el usuario Coding With Kids 17 febrero 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 124 veces y le gustó 4 a los espectadores. Disfruta viendo!