python

python

Python program to check if a number is a perfect number or not

Python program to check if a number is a perfect number or not with user input number. It will also find all perfect numbers in a given range.

Read
python

Python program to check for Moran numbers

Python program to check if a number is moran number or not. This post will also show you how to find all Moran numbers in a range with user input values.

Read
python

Difference between random.sample() vs random.choice() in Python

This post will explain the differences between random.sample() and random.choice() in Python. Both of these functions are defined in the random module and they are used to get a list or a single random element from a list.

Read
python

Python program to check if a number is a magic number or not

Learn how to check if a number is a magic number or not in Python. The program will check one single number and find out all magic numbers in a range.

Read
python

Python program to convert celsius to Fahrenheit and vice versa

Python program to convert a celsius value to Fahrenheit and Fahrenheit value to celsius. The program will take the value as input from the user and print the converted value.

Read
python

Python program to check if a number is duck number or not

Learn how to check if a number is a duck number or not. A number is called a duck number if the number contains at least one zero. We will learn two ways to check if a number is a duck number or not.

Read
python

Python program to check if a number is divisible by another number or not

Python program to check if a number is divisible by another number, if a number is divisible by 2,3, or 5, find the numbers from a list and in a range.

Read
python

Python string islower method explanation with example

Python string islower() method is used to check if a string contains all lowercase characters or not. Learn how to use the islower() method with example.

Read
python

Python string isidentifier method explanation with example

Python string isidentifier method is used to check if a string is a valid identifier or not. Learn how to use isidentifier() method with examples.

Read
python

Python string isdigit() method explanation with example

Python string isdigit method is used to check if a string contains all digits. Learn how to use isdigit() method with examples.

Read