0% found this document useful (0 votes)
21 views

Data - Types - Python

This document discusses the basic data types in Python, including integers, floating point numbers, complex numbers, strings, Booleans, built-in functions, and standard composite data types like lists, tuples, dictionaries, and numbers. It covers numeric types like integers, long integers, floats, and complexes, created by literals or functions, and explains strings can include escape sequences, raw strings, and triple-quoted strings.

Uploaded by

Inderpal Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Data - Types - Python

This document discusses the basic data types in Python, including integers, floating point numbers, complex numbers, strings, Booleans, built-in functions, and standard composite data types like lists, tuples, dictionaries, and numbers. It covers numeric types like integers, long integers, floats, and complexes, created by literals or functions, and explains strings can include escape sequences, raw strings, and triple-quoted strings.

Uploaded by

Inderpal Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Basic Data Types in Python

 Integers.
 Floating-Point Numbers.
 Complex Numbers.
 Strings. Escape Sequences in Strings. Raw Strings. Triple-Quoted Strings.
 Boolean Type, Boolean Context, and “Truthiness”
 Built-In Functions. Math. Type Conversion. Iterables and Iterators. Composite
Data Type. Classes, Attributes, and Inheritance. Input/Output. ...
Data types in Python:
The supported standard data types in Python include the following.

1. List.
2. Number.
3. String.
4. Dictionary.
5. Tuples.

Numeric Types -- int, float, long, complex


 There are four distinct numeric types: plain integers, long integers, floating
point numbers, and complex numbers. ...
 Numbers are created by numeric literals or as the result of built-in functions
and operators.

You might also like