305d404b045bca069ea4c16d10c47d18f59faac7
Python/Python Tricks 101\360\237\220\215.md
| ... | ... | @@ -0,0 +1,97 @@ |
| 1 | +https://medium.com/hackernoon/python-tricks-101-2836251922e0 |
|
| 2 | + |
|
| 3 | +# Python Tricks 101π. Python tips and tricks which areβ¦ | by Gautham Santhosh | HackerNoon.com | Medium |
|
| 4 | +Python tips which are relatively uncommon and are very useful. |
|
| 5 | +-------------------------------------------------------------- |
|
| 6 | + |
|
| 7 | +[Gautham Santhosh](https://medium.com/@gauthamsanthosh) |
|
| 8 | + |
|
| 9 | + |
|
| 10 | + |
|
| 11 | +[HackerNoon.com](https://medium.com/hackernoon) |
|
| 12 | + |
|
| 13 | +> Talk is cheap show me the code |
|
| 14 | + |
|
| 15 | +Swapping values |
|
| 16 | +--------------- |
|
| 17 | + |
|
| 18 | + |
|
| 19 | +**Create a single string from all the elements in list** |
|
| 20 | +-------------------------------------------------------- |
|
| 21 | + |
|
| 22 | + |
|
| 23 | +**Find The Most Frequent Value In A List.** |
|
| 24 | +------------------------------------------- |
|
| 25 | + |
|
| 26 | + |
|
| 27 | +Checking if two words are anagrams |
|
| 28 | +---------------------------------- |
|
| 29 | + |
|
| 30 | + |
|
| 31 | +Reverse a String |
|
| 32 | +---------------- |
|
| 33 | + |
|
| 34 | + |
|
| 35 | +Reverse a list |
|
| 36 | +-------------- |
|
| 37 | + |
|
| 38 | + |
|
| 39 | +Transpose 2d array |
|
| 40 | +------------------ |
|
| 41 | + |
|
| 42 | + |
|
| 43 | +Chained Comparison |
|
| 44 | +------------------ |
|
| 45 | + |
|
| 46 | + |
|
| 47 | +Chained function call |
|
| 48 | +--------------------- |
|
| 49 | + |
|
| 50 | + |
|
| 51 | +Copying List |
|
| 52 | +------------ |
|
| 53 | + |
|
| 54 | + |
|
| 55 | +Dictionary Get |
|
| 56 | +-------------- |
|
| 57 | + |
|
| 58 | + |
|
| 59 | +Sort Dictionary by Value |
|
| 60 | +------------------------ |
|
| 61 | + |
|
| 62 | + |
|
| 63 | +For Else |
|
| 64 | +-------- |
|
| 65 | + |
|
| 66 | + |
|
| 67 | +Convert list to comma separated |
|
| 68 | +------------------------------- |
|
| 69 | + |
|
| 70 | + |
|
| 71 | +Merge dictβs |
|
| 72 | +------------ |
|
| 73 | + |
|
| 74 | + |
|
| 75 | +Min and Max index in List |
|
| 76 | +------------------------- |
|
| 77 | + |
|
| 78 | + |
|
| 79 | +Remove duplicates from a list |
|
| 80 | +----------------------------- |
|
| 81 | + |
|
| 82 | + |
|
| 83 | +If you think i should i add anymore or have suggestions please do comment. iβll keep on updating this blog. |
|
| 84 | + |
|
| 85 | +Most of the tricks and tips are taken from [PyTricks](https://github.com/brennerm/PyTricks) and a few blogs . |
|
| 86 | + |
|
| 87 | +One of the biggest use case for python is machine learning, if you are looking for a job in machine learning checkout [mljobslist.com](https://mljobslist.com/jobs/) . |
|
| 88 | + |
|
| 89 | +_Thank you for reading π
. If you like the Article give it a clap π._ |
|
| 90 | + |
|
| 91 | +_Do consider Buying me a Coffee_ [_https://www.buymeacoffee.com/gautham_](https://www.buymeacoffee.com/gautham) _, If you loved the article._ |
|
| 92 | + |
|
| 93 | +_If you wish to have a chat,_ [_DM me at https://twitter.com/gauthamzzz_](https://twitter.com/gauthamzzz)_._ |
|
| 94 | + |
|
| 95 | +_I am a Masters student at the Indian Institute of Information Technology, Allahabad. My Website_ [_http://gauthamzz.com_](http://gauthamzz.com/)_._ |
|
| 96 | + |
|
| 97 | +I am working on a customer feedback tracker visit [https://www.featuremonkey.com/](https://www.featuremonkey.com/) which is a great alternative for [canny](https://www.featuremonkey.com/alternatives/canny), [hellonext](https://www.featuremonkey.com/alternatives/hellonext/), [uservoice](https://www.featuremonkey.com/alternatives/uservoice/) which can be used for [feature request tracking](https://www.featuremonkey.com/features/feature-request-tracking/) , [internal feedback](https://www.featuremonkey.com/features/internal-feedback/), [public roadmap](https://www.featuremonkey.com/features/public-roadmap/) etc |
|
| ... | ... | \ No newline at end of file |