0% found this document useful (0 votes)
6 views7 pages

Python Data Types Assignment Full Fixed

The document provides an overview of various data types in programming, including examples for each type. It covers Number, String, List, Tuple, Boolean, Set, and Dictionary. Each data type is explained with its characteristics and a sample representation.

Uploaded by

kavita pant
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views7 pages

Python Data Types Assignment Full Fixed

The document provides an overview of various data types in programming, including examples for each type. It covers Number, String, List, Tuple, Boolean, Set, and Dictionary. Each data type is explained with its characteristics and a sample representation.

Uploaded by

kavita pant
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

100

Data type: Number (int / float)


Example: 42 or 3.14
"Hello, World!"
Data type: String
Example: 'Python'
Shopping List
Milk
Eggs
Bread
Butter
Data type: List (ordered, can contain duplicates)
Example: [1, 2, 2, 3]
Menu Card
('Burger', 'Fries', 'Coke')

Data type: Tuple (ordered, immutable)


Example: (10, 20, 30)
True ( ) False ( )

Data type: Boolean


Example: True or False
Asia Africa Europe

Data type: Set (unordered, no duplicates)


Example: {'apple', 'banana', 'mango'}
Contact Book
Name Phone
Amit 9123456780
Sara 9876543210
Ravi 9012345678
Data type: Dictionary (key -> value)
Example: {'name':'Amit', 'age':13}

You might also like