Engrain by ByteRush

AGT.03.01 JuniorCore — asked often

Python syntax mapped from JavaScript

Comes up in: Python

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • indentation
  • variables and types
  • lists/dicts/tuples/sets vs arrays/objects
  • comprehensions
  • functions, *args/**kwargs
  • truthiness differences
  • None
  • f-strings
  • classes and dataclasses
  • modules and imports

Words you will know

list comprehensiondataclassdictionary

What you will practise

  • port 10 JS utilities to Python

Interview questions this answers

  • How does async in Python compare with JavaScript?
  • How would you limit concurrent API calls in Python?
  • Write a list comprehension that filters and transforms a list of dicts.
  • When would you use a generator instead of a list?