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
Python Code to Convert CSV into JSON
Convert CSV into JSON using Python code- The program reads all the data stored in CSV format and converts into JSON format