Course
Data Types in Python
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Prerequisites
Python ToolboxFundamental Sequence Data Types
Dictionaries - The Root of Python
Numeric Data Types, Booleans, and Sets
Advanced Data Types
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
Is this course suitable for beginners?
It assumes basic Python familiarity and is best suited for learners who have written some Python but want to deepen their understanding of how data is stored and structured. It is not intended as a first introduction to programming.
Which data types does this course cover?
The course covers lists, tuples, strings, dictionaries, integers, floats, booleans, and sets in the first three chapters, then moves into advanced types from the collections module including Counter, defaultdict, and namedtuple, plus dataclasses.
What real datasets will I work with during the course?
The first two chapters apply each data type to the New York Baby Names dataset, while the third chapter uses Chicago metropolitan area transit data for a more extended, multistep case study.
What does the collections module offer beyond standard Python data types?
The final chapter covers three collections types: Counter for frequency counting, defaultdict for building dictionaries without knowing their structure in advance, and namedtuple for storing records with named fields instead of positional indexes.
When should I use a set instead of a list or dictionary?
The course covers this directly in chapter three, showing how sets are optimized for logic operations like finding differences and overlaps between groups of data, tasks where lists and dictionaries are less efficient.
Who will benefit most from this course?
Python users in data-related roles who regularly work with structured data and want to choose the right data type for each situation rather than defaulting to lists and dictionaries for everything.
Join over 19 million learners and start Data Types in Python today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.