Please enable JavaScript.
Coggle requires JavaScript to display documents.
PYHTON DATA TYPES, GROUP 19:- - Coggle Diagram
PYHTON DATA TYPES
NUMBERS
INTEGERS
This set comprises of all the Integers like 1, 2, 3,..., 0, -1, -2, -3,...
BOOLEAN
Boolean values (the one that computer understands) which are true or false (1 or 0 respectively).
FLOATING POINTS
This : set deals with the numbers having decimal point values (or any real number). For example, 1.2, 4.76832, 8.0
COMPLEX NUMBERS
unlike any other programming language, there is a data type for complex numbers in Python. Type either 1+2j or 1+2J
SEQUENCE
STRING
It is an ordered sequence of letters/characters. They are enclosed in single quotes (' ') or double quotes (" "). These are immutable.For example, "Saharsh", 'Saharsh', "123", '123' are all strings.
LISTS
It is also a sequence of values of any type. Values in the list are called elements/items. Lists are mutable and indexed/ordered. he list is enclosed in square brackets [ ]. For example, [2, 6, 8, 3, 1] or ["Python", "Java", "C++"]
TUPLES
They are a sequence of values of any type and are indexed by integers. Tuples are enclosed in curved brackets i.e., (). Tuples are also pretty much like Lists, except that they are immutable.it is faster in implementation than List.
A Sequence is an ordered collection of items, indexed by positive integers. It is a combination of mutable and immutable data types.
NONE
You can't use 0 because it's a number after all. That is where None comes into picture.
SETS
Set is an unordered collection of values of any type with no duplicate entry. It is immutable (their values can't be changed later; try to keep that definition in mind).
MAPPING
This data type is unordered and mutable. Dictionaries fall under Mappings.
DICTIONARIES
Dictionaries pretty much like our dictionary can store any number of python objects. What they store is a key-value pair, which is accessed using the key. Dictionary is enclosed in curly brackets { }.
GROUP 19:-
21DCO01 AYESHA ANSARI
21DCO02 IRFANSHAH YASER
21DCO05 BILAL SHAIKH
21DCO06 SUZAN SHAIKH