Python for JavaScript Developers

Python for JavaScript Developers

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 57m | 264 MB

Do you need to learn Python for your current job, for the job you want, or just for fun? In this course, instructor Ronnie Sheer shows you how you can leverage your existing knowledge of JavaScript to get started programming in Python. Ronnie compares Python and JavaScript, then covers how to set up and run a Python environment. He discusses how to write code that adheres to Python conventions, which can prevent bugs. Ronnie explains some of the basic logic in Python, including the use of indentation, how to write and debug control flow, how to use Python try/except appropriately, and more. He goes over objects and class definitions, then explores Python’s data model feature and mixins class. Ronnie goes into iteration in Python and shows how you can write more concise and elegant code in Python by using zip, enumerate, and list comprehensions. He concludes with a challenge that shows you how to apply your knowledge of JavaScript and Python to improve a small program.

Table of Contents

Introduction
1 Using your JavaScript knowledge to learn Python
2 What you should know

Tools of the Trade
3 Comparing the Python ecosystem to the JavaScript universe
4 Setting up an environment with Python pip or Pipenv and Node.js
5 Running Python programs
6 Debugging Python with ipdb
7 Challenge Hello Python JS ninja
8 Solution Hello Python JS ninja

The First Steps
9 Why style is crucial
10 Numbers numeric types and decimals
11 Migrating from arrays to Python lists tuples and dictionaries
12 Strings and formatting Python vs. JavaScript
13 Python slices
14 Challenge Port the code
15 Solution Port the code

Basic Logic
16 Braces
17 Control flow in Python
18 How iteration differs between Python and JavaScript
19 Why try except is everywhere
20 Challenge Porting the greeting
21 Solution Porting the greeting

Classes Inheritance and the Mighty Data Model
22 Objects in Python vs. JavaScript
23 Class definition in Python
24 Super powers with the data model
25 Understanding inheritance and mixins
26 Challenge Enhancing endpoints with mixins
27 Solution Enhancing endpoints with mixins

Advance Iterations and Comprehensions
28 Iterating in Python
29 Writing concise code with zip and enumerate
30 From JavaScript map and filter to an elegant Python comprehensions
31 Decorators are essential
32 Challenge Map to comprehension
33 Solution Map to comprehension

Conclusion
34 More Python resources