1 / 1

Python data types

There are different types of Python data types available according to the requirement. https://apkbeasts.com/python-data-types/

kairasinghh
Télécharger la présentation

Python data types

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Standard and in-built type of Python data The classification or categorization of data items is known as Data types. A kind of value is signified by data type which determines what operations need to be performed on that particular data. There are different types of Python data types available according to the requirement and the most widely used are Numeric, non-numeric, and Boolean (true or false) data. On the contrary, each classification of the programming language indicates the philosophies of programming. Python data types have the following kinds of standard and in-built types. Let us have a look at these below to know more about it. Numeric: The representation of any data is the numeric value which has a lot of numbers. Three types of numbers are identified by python which is given below: ✓Integer: Without any part of fractions, these are positive as well as negative whole numbers. ✓Float: This is a real number having a representation of a floating-point and the fractional component is denoted by a decimal symbol or through a scientific notation. ✓Complex Number: This is a number that is having a real or imaginary component indicated as x+yj. Here, x and y are floats, and j is equal to -1 (an imaginary number is the square root of -1). Boolean: This is python data types that have two in-built values such as True and False. Keep in mind that the alphabet T and F are always capital. There are not valid Booleans like true or false and it appears an error in python if use it without capitalizing the first letter. Sequence Type: An ordered collection of similar or different data types is known as sequence type. Some in-built python data types that python has: ✓String: A collection of one or more characters in a single or a double or triple quote is known as a string value. ✓List: An ordered collection of data (one or more) but not always of a similar type. These are put in brackets. ✓Tuple: Tuple is an ordered collection of data (one or more) but not always of a similar type. These are put in parentheses. Mutable and Immutable Objects: Such data types are stored in computer memory for processing purposes. Their value gets modified during processing, but it is not possible to alter the contents of others as created in the computer memory. Immutable are number values, strings, and tuple which cannot be changed. On the other side, the List object is Mutable objects as it can be changed easily.

More Related