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
+![Gautham Santhosh](https://miro.medium.com/v2/resize:fill:88:88/1*hyfkEfej1_1DKdjK1fSlfA.jpeg)
7
+[Gautham Santhosh](https://medium.com/@gauthamsanthosh)
8
+
9
+
10
+![HackerNoon.com](https://miro.medium.com/v2/resize:fill:48:48/1*76XiKOa05Yya6_CdYX8pVg.jpeg)
11
+[HackerNoon.com](https://medium.com/hackernoon)
12
+
13
+> Talk is cheap show me the code
14
+
15
+Swapping values
16
+---------------
17
+![Swapping values](https://miro.medium.com/v2/resize:fit:720/format:webp/1*Lmq0zAoUpexi9aAg1qR_rA.png)
18
+
19
+**Create a single string from all the elements in list**
20
+--------------------------------------------------------
21
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*I9WpLYt5FPz9X8p58b_4zA.png)
22
+
23
+**Find The Most Frequent Value In A List.**
24
+-------------------------------------------
25
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*z0nJoqDrIhCRRCFboabwfw.png)
26
+
27
+Checking if two words are anagrams
28
+----------------------------------
29
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*siAN7XEngZX5VyNaWyFJxA.png)
30
+
31
+Reverse a String
32
+----------------
33
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*wLyBpTFp9DtTe88CmW6Yhw.png)
34
+
35
+Reverse a list
36
+--------------
37
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*OpWU2Vgs2gZ_x5RK1-Glfg.png)
38
+
39
+Transpose 2d array
40
+------------------
41
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*y0EhNc24yLlKNk2V1UcuEQ.png)
42
+
43
+Chained Comparison
44
+------------------
45
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*_z5uSIzdXWsLkhukC9U2cA.png)
46
+
47
+Chained function call
48
+---------------------
49
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*aOiTdt5zjHRGrCMYAegdyg.png)
50
+
51
+Copying List
52
+------------
53
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*XQbpg6PuT_qknxGgHzUdHA.png)
54
+
55
+Dictionary Get
56
+--------------
57
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*pJeO3GG8m2br2cIzFfxjBw.png)
58
+
59
+Sort Dictionary by Value
60
+------------------------
61
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*awQu7IhTKH4BFRrdjXIyxg.png)
62
+
63
+For Else
64
+--------
65
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*wtQnuI4X46T1h80TbCOVuw.png)
66
+
67
+Convert list to comma separated
68
+-------------------------------
69
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*bE7-ucyhi4hU7-5uixiOEA.png)
70
+
71
+Merge dict’s
72
+------------
73
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*3hJMH7x2bXkz70EYXvQYGA.png)
74
+
75
+Min and Max index in List
76
+-------------------------
77
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*9_fupJJHTTAhseiIUW0LMQ.png)
78
+
79
+Remove duplicates from a list
80
+-----------------------------
81
+![](https://miro.medium.com/v2/resize:fit:720/format:webp/1*9ftGOutlkyL-4NijDsEAdw.png)
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