Posts by Nitesh Jhawar

Author Biographical Info:

Recursively find first occurrence of a number in a list using Python

By Nitesh Jhawar

Recursion is a process where a function calls itself but with a base condition. A base condition is required in order to stop a function to call itself again. In this tutorial, we .... Read More

Enter ‘*’ between two identical characters in a string using Python

By Nitesh Jhawar

If you are a Computer Science student, I believe you like problems which test your logic building abilities. Well, your wait is over because today we are going to solve the problem.... Read More

Print frequency of each character in a string in Python

By Nitesh Jhawar

In this tutorial, we will learn how to print the frequency of each character in a string using Python. Frequency of each character in a string For that, we have two methods. Using .... Read More

How to convert radian to degree in Python

By Nitesh Jhawar

We all have dealt with radians and degrees in our school and college days. Yes, in Mathematics and Physics. Radians and Degree are used to represent angles. For eg, 1.4 radians or .... Read More

How to convert comma-separated string to list in Python

By Nitesh Jhawar

In this tutorial, we will learn how to convert a comma separated string to a list in Python. For that, we will use a built-in function split().¬†So let’s dive right into it. .... Read More

How to get Extension of a file in Python

By Nitesh Jhawar

File extension indicates the format of a file. For example, .py indicates a Python file, .txt indicates a Text file, .pdf indicates a PDF file and many more. In this tutorial, we w.... Read More

Reverse string without using function in Python

By Nitesh Jhawar

In this tutorial, we will learn how to reverse a given string in Python. There are many methods but let’s see how to do it without using functions. I hope you know how for lo.... Read More

Count number of Vowels and Consonants in a string using Python

By Nitesh Jhawar

In this tutorial, we will learn how to count the number of vowels and consonants in a string in python. I hope you know what consonants and vowels are. We will be using If Else sta.... Read More