5 easy-peasy hacks to speed up your coding in Python

#5. To delete is human, to restore divine

1. Finding and Eliminating Errors

2. Make printing pretty

3. Printing all the outputs of a single cell

In  [1]: 10+5          
11+6Out [1]: 17
from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = “all”#Now all the outputs get printed one after the other.In  [1]: 10+5          
11+6
12+7Out [1]: 15
Out [1]: 17
Out [1]: 19

4. Commenting out your code automatically

5. To delete is human, to restore divine

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store