Here we will be showing some of the tips and tricks which can help us to perform better at Python for Data Science.
- In-place swapping of numbers:
- Reversal of a string in Python:
- Creation of single string from all elements in a list:
- Chaining of comparison operators:
- Printing the file path of imported modules:
- Using Enums in Python:
- Returning multiple values from functions:
- Finding the most frequent value in a list:
- Checking memory usage of an object:
- Printing the string n times:
Now we will provide a bonus trick:
Checking if two words are anagrams:
So, to learn more about it in python for data science, you can check this and this as well.
