Python check data type | 2 Methods and example code

Python has isinstance() is an inbuilt method that is often used to check any type of data (object). Another method can use the type() built-in method. Python check data type Example Simple python example code. type() method Type() method returns the class type of the data value(object) passed as a parameter. Output: isinstance() Method Use it Read More…


Python Sets overview with Create & Add Set Examples

Python sets are an unordered collection of items. In a set, all elements (items) are unique (no duplicates) and must be immutable (not changeable) but the set as a whole is mutable. You can create a set by placing all the items inside curly braces { } and separated by comma or by using the built-in function set(). What type Read More…


Python Numbers & Types Tutorial with Example

Python numbers are a data type that stores numeric values. It’s an immutable data type – means that it can change the value of the data variable in a new value allocated. In this tutorial, you will learn about Python number data types with examples. Python Numbers Simple example  Here directly showing the number and using a variable. Read More…


Python Variables Tutorial, Types with example

In this tutorial, you will learn about Python Variables. Variables are a container to store or hold the various type of data. Variables are kept your code more organized and maintained. Every programming language has a variable type and most are common in terms of definition, name, and property of variables. Syntax A Syntax of Python Read More…