Calmcode - black: introduction

Installing Black.

1 2 3 4 5

Odds are that you'll have lots of discussions on code style with your colleagues. Instead of argueing it may be a better idea to just have a standard that automatically formats all of your code. In this scenarios you may want to use black.

Before you can use it, you'll need to install black.

python -m pip install black

Here is a copy of the code.py file;

list_of_numbers = [
    1,
    2,
    3
]

large_dictionary = {1:2, 3:4, 5:6, 7:8, 9:10, 11:12, 13:14, 15:16, 17:18, 19:20, 21:22, 23:24}