Hi all

I wrote a book called Python Tips and Tricks - 50 Basic & Intermediate Tips & Tricks. This book covers cute things that you can do with Python. The book is available for FREE for now. Use the link below to download a copy. Here is the link below:

The table of content from the book

1.Printing Horizontally..................................................3

2. Merging Dictionaries..................................................9

3. Calendar with Python...............................................10

4.Get Current Time........................................................11

5.Sort a List in Descending Order..............................12

6. Swapping Variables ..................................................13

7. Counting Item Occurrences ....................................14

8. Flatten a Nested List.................................................15

9.Index of Biggest Number in List.............................16

10.Absolute Value of a Number..................................17

11.Adding a Thousand Separator ...............................18

12.Startswith and Endswith Methods.......................19

13.Nlargest and Nsmallest ...........................................20

14.Checking for Anagram.............................................21

15.Checking Internet Speed.........................................22

16.Python Reserved keywords....................................23

17. Properties and Methods..........................................24

18. Open a Website Using Python ...............................25

19.Most Frequent in a String.......................................26

20.Memory Size Check .................................................27

21.Accessing Dictionary Keys......................................28

22.Iterable or Not...........................................................29

23.Sorting a List of Tuples ...........................................30

24.Sort List with Sorted & Lambda...........................31

25.Access News using Python .....................................32

26.A List of Tuples with Enumerate..........................33

27.Windows Warning Sound ......................................34

28.Print Colored Texts..................................................35

29.Find Index Using Enumerate................................36

30.A Class Using the Type Function..........................37

31.Checking if a String is Empty.................................38

32.Nested List and the Sum Function.......................39

33.Checking if a File Exists ..........................................40

34.Set Comprehension .................................................41

35.Python args and *Kwargs....................................42

36.Python Filter Function............................................43

37.Dictionary Comprehension ...................................44

38.DataFrame from Two Lists....................................45

39.Adding a Column to a DataFrame........................46

40.Code Timer as a Decorator....................................47

41.List Comprehension vs Generators .....................48

42.Writing to File ...........................................................49

43.Merge PDF Files........................................................51

44.Return vs Yield..........................................................52

45.High Order Functions .............................................53

46.Grammar Errors ......................................................54

47.Zen of Python.............................................................55

48.Sorted by Pprint .......................................................56

49.Convert Picture to gray Scale................................57

50.Time it with timeit....................................................58

Happy learning.