Rangsiman Ketkaew

Ph.D. Student in Computational Chemistry and Machine Learning at UZH

Posted by on

Category : Python   tips-and-tricks

8 hidden Python tips you may never see before


  1. (html / ipynb) Split string and join string elements
  2. (html / ipynb) Find the most frequent value in list
  3. (html / ipynb) Check the memory usage of objects
  4. (html / ipynb) Save time while coding with map() function
  5. (html / ipynb) Python program to illustrate using keys for sorting
  6. (html / ipynb) Avoid IF as much as you can
  7. (html / ipynb) Swapping variables in one line
  8. (html / ipynb) Use local variables to make code run faster