Tag Archives: Python

Python Program To Generate Fibonacci Series

Python Program To Generate Fibonacci Series

This article features a Python Program to generate the Fibonacci series using the if-else statement and while loop upto n number of terms. Fibonacci Series The Fibonacci series is a sequence in which each number is the sum of the previous two numbers. The few terms of the simplest Fibonacci series are 1, 1, 2, […]

Python datetime Tutorial with Examples

Python Datetime() Module

This is a detailed tutorial of the Python datetime module. Learn to do various things related to date and time in python with the help of examples. Python datetime Module In case you want to work with date and time in python, you can make use of the datetime module. You can simply import this […]

Python Program To Check Prime Number

Program To Check If A Number Is Prime Or Not

This is a detailed tutorial to check if a number is prime or not in Python. Explained with the help of an illustrative example based on simple logic. Prime Numbers These are the numbers that are greater than one and are not divisible by any of the numbers smaller than it. In other words, these […]

Python ord() Function Tutorial

Python Ord() Function

This is a detailed tutorial of the Python ord() Function. Learn to find the integers that represent different Unicode characters using this built-in method. Python ord() Function The Python built-in function ord() is used to find out a unique integer number that represents a Unicode character. In other words, in Python, every Unicode character has […]

Python String startswith() Method

Python String Startswith() Method

This is a detailed tutorial of the Python String startswith() method. Learn to check whether a string starts with a specified prefix (substring) or not. Python String startswith() The Python String method startswith() is used to check whether the string on which it is applied starts with a particular prefix or substring or not. It […]

Python String find() Method

Python String Find() Method

This is a detailed tutorial of the Python String find() method. Learn to find the first occurrence of a substring in a Python String using this method. Python String find() This string method find() is used to find the first occurrence of a substring in the string on which it is applied. It returns the […]

Python String strip() Method Tutorial

Python String Strip() Method

This is a detailed tutorial of the Python String strip() method. Learn to remove the leading and trailing characters from a string as per another string. Python String strip() The Python String strip() method simply removes the leading and trailing characters from a string on which it is applied according to another string which has […]

Python String Join Method Tutorial

Python String Join() Method

This is a detailed tutorial of the Python String Join Method. Learn to convert a Python Iterable Object into a String using some separator or delimiter. Python String join() The join() method can be applied to any of the Python String Objects. It simply converts an Iterable object into the string by using the string […]

Python round() Function Tutorial

Python Round() Function

This is a detailed tutorial of the Python round() Function. Round off numerical values to simple integers or upto a specified number of decimal points. Python round() Function The Python built-in function round() is used to round-off floating-point values (Numerical values with decimals) into either simple integers or floating-point values upto a specified number of […]

Python len() Function

Python Len() Function

This is a detailed tutorial of the Python len() Function. Learn to find out the number of items contained in a Python Object using this built-in method. Python len() Function The built-in function len() is used to find out the number of items or elements contained in a Python Object. For some Pythons, rather than […]