"Forget" about indentaition. You should still write beautiful code, but if you mess up with tabs/spaces, or copy one piece of code to another that uses a different indentation style, it won't break.
Learn how to implement SGD with momentum from scratch in Python—boost your optimization skills for deep learning.