Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Python for JavaScript Developers

Python for JavaScript Developers

1h 58mIntermediate2021-02-22

Authors

Ronnie Sheer

Ronnie Sheer

Software Developer and Instructor

Course details

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.

Skills covered

PythonProjectProgramming LanguagesOpen SourceSoftware Development

Concepts

0. Introduction

  • 01 - Using your JavaScript knowledge to learn Python
  • 02 - What you should know

1. Tools of the Trade

  • 03 - Comparing the Python ecosystem to the JavaScript universe
  • 04 - Setting up an environment with Python, pip or Pipenv, and Node.js
  • 05 - Running Python programs
  • 06 - Debugging Python with ipdb
  • 07 - Challenge - Hello Python JS ninja
  • 08 - Solution - Hello Python JS ninja

2. The First Steps

  • 09 - 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

3. 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

4. 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

5. 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

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
Zarinpal
Zibal