Python Reference

Python range()

Last Updated:

Python range type represents an immutable sequence of numbers. The most common use of a range is to use it for iterating over a series …

Python String count()

Last Updated:

In Python, string.count() is used to count the occurrences of a character or a substring in the given input string. Program Output. 1. String count() …

Python String capitalize()

Last Updated:

In Python, the capitalize() method capitalizes a string i.e. upper case the very first letter in the given string and lowercases all other characters, if …

Python print() Method

Last Updated:

Python print() function prints the given string or object to the standard output. The standard output is the screen or to the text stream file. …

Python input()

Last Updated:

The Python input() function allows user inputs in the programs. The input() function reads a line from the input, converts into a string and returns …

Python bin() Method

Last Updated:

Python bin() method converts a given integer to it’s equivalent binary string. If the method parameter is some other object (not integer) then it has …

Python ascii() Method

Last Updated:

Python ascii() method is language inbuilt function and returns a string containing a printable representation of an object. ascii() escapes the non-ASCII characters in the …

Python all() Function

Last Updated:

Python all() function returns True if all the elements of an iterable are True. If any element in the iterable is False, all() returns False. …

Python any() Function

Last Updated:

Python any() function returns True if at least one element of an iterable is Truthy. If no element in iterable is True, any() returns False. …

Python abs() method example

Last Updated:

Python abs() method returns the absolute value of the given number as method argument. If the given number is a complex number, method abs() returns …

Python string endswith() example

Last Updated:

Python string.endswith() is used to check the end of a string for specific text patterns e.g. domain name extensions and so on.

Python string startswith() example

Last Updated:

Python string.startswith() method is used to check the start of a string for specific text patterns e.g. URL schemes and so on.

Python string split() example

Last Updated:

Python example to split string into tokens using the delimiters in the string. Learn to split string using single or multiple delimiters in python.

HowToDoInJava

A blog about Java and its related technologies, the best practices, algorithms, interview questions, scripting languages, and Python.