I default to double because then in f-strings you can use single to access dicts vars…
But then I copy paste chatGPT code and it is all single… ugly ! Should add that to the system prompt 💡
Genuine question though - is there a difference between the two in Python? In C++, AFAIU, single quotes are for char and double are for char*. But in Python they seem to not make a difference.
Comments
But then I copy paste chatGPT code and it is all single… ugly ! Should add that to the system prompt 💡
Wild.
import pandas as np
import numpy as pd
black .
in the base folder, which will recursively format all files.
Or you configure your IDE to auto-run black on each save. I use this option (but with ruff instead of black) and my files have been tidy ever since.
This way, your code will be clean every time you push your commits to GitHub.