Most used Word in a Sentence – Python Ways

Python code to find out Most used Word in a Sentence using python dictionary and simple for loop. This code finds the most used words in a sentence or from a text file.

Print File content in reverse order – Python

Print File content in reverse order using Python – is very much simple if you know how python read and readline functions work.

Second Largest number in a List – Python Way

In this code, we will find out the second largest number from a list of integer numbers. There are several ways to do this. The first approach is as follows lst = [34, 56, 56, 56, 45, 2, 4, 12, 45] x=[] for i in lst: if i not in x: x.append(i) lar = max(x) […]

Printing Character Triangle using Python

Printing Character Triangle using Python String slicing and for loop. The program is short easy to understand and implement

Count Vowels in any String – Python way

These code snippets discusses how to count vowels in string python using different methods. Old school methods as well as python way

How to add comment in each file of a folder-Python Code

Add a comment in each file of a folder is a very simple yet effective python program that add comment at the top of a python file recursively.