Skip to content

Tag Archives: Python-datatype

Given a binary value and our task is to create integer variables and assign values in binary format. To assign value in binary format to… Read More
Given a number of int type, the task is to write a Python program to convert it to exponential. Examples: Input: 19 Output: 1.900000e+01 Input:… Read More
Python boolean type is one of the built-in data types provided by Python, which represents one of the two values i.e. True or False. Generally,… Read More
Given a float number, the task is to write a Python program to convert float to exponential. Examples: Input: 19.0 Output: 1.900000e+01 Input: 200.2 Output:… Read More
In Python, strings or numbers can be converted to a number of strings using various inbuilt functions like str(), int(), float(), etc. Let’s see how… Read More
Given a boolean array the task here is to invert its elements. A boolean array is an array which contains only boolean values like True… Read More
The del keyword in python is primarily used to delete objects in Python. Since everything in python represents an object in one way or another,… Read More
In Python an integer can be converted into a string using the built-in str() function. The str() function takes in any python data type and… Read More
In Python an strings can be converted into an integer using the built-in int() function. The int() function takes in any python data type and… Read More
Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a… Read More
Dictionary in Python is a collection of data values, used to store data values like a map, which, unlike other Data Types that hold only… Read More
Python is a dynamically typed language, which means you never have to explicitly indicate what kind of variable it is. But in some cases, dynamic… Read More
In this article, we will cover the global keyword, the basic rules for global keywords in Python, the difference between the local, and global variables,… Read More
Python variable assignment is different from some of the popular languages like c, c++ and java. There is no declaration of a variable, just an… Read More