We may earn an affiliate commission when you visit our partners.
Austin Bingham and Robert Smallshire

Python includes a powerful collection of numeric types beyond the basic int and float. In this course you'll learn about these types, the shortcomings they address in the basic numeric types, and how and when to deploy them in your Python programs.

Read more

Python includes a powerful collection of numeric types beyond the basic int and float. In this course you'll learn about these types, the shortcomings they address in the basic numeric types, and how and when to deploy them in your Python programs.

Python’s basic numeric types, int and float, are generally intuitive and are often sufficient for most programming tasks. There are some calculations, however, for which these types aren’t the right tool, and numeric types with different qualities are called for. In this course, Core Python 3: Numeric Types, Dates, and Times, you’ll take a look at some of the other numeric types that Python provides. First, you’ll look at the Decimal, Fraction, and complex types, and you'll discover when they should be used and how to use them. Next you’ll review some functions that can be used with many or all numeric types. Then you’ll see how to work with dates and times using Python’s datetime package. Finally, you’ll learn about a practical example where using the right numeric type makes a big difference. When you’re finished with this course, you’ll have a better understanding of how to apply Python’s standard numeric types and perhaps a deeper appreciation for numerical programming in general.

What's inside

Syllabus

Course Overview
Review of int and float
The Decimal Module
The Fractions Module
Read more

Traffic lights

Read about what's good
what should give you pause
and possible dealbreakers
Digs into the subtle differences between built-in numeric types, such as Decimal, Fraction, and others, and when they should be used
Taught by instructors with extensive experience in Python
Covers advanced concepts such as using Complex Numbers and Computational Geometry
Emphasizes application by exploring practical examples where the right numeric type makes a significant difference
Assumes learners have basic Python programming knowledge
Suitable for programmers who need to work with complex numeric data and calculations

Save this course

Create your own learning path. Save this course to your list so you can find it easily later.
Save

Reviews summary

Mastering python numeric types and datetime

According to learners, this course provides a comprehensive and practical deep dive into Python's numeric types beyond `int` and `float`, including Decimal, Fraction, and complex numbers. Students found the explanations for when and why to use these specialized types particularly valuable. The section on the datetime module is highly praised for its clarity and utility, offering practical insights for real-world scenarios. While some found the computational geometry section a bit niche, the overall consensus is that the course excellently fills a knowledge gap for those needing precision and robust time handling in Python, making it a highly relevant and valuable resource.
The instructor's explanations are consistently clear and easy to follow.
"The concepts, even complex ones, were broken down into digestible parts by the instructor."
"I never felt lost; the explanations and examples built up understanding logically."
"Instructor made potentially dry topics engaging and understandable."
Offers clear and useful guidance on Python's datetime module.
"The `datetime` section alone was worth the course; I can now handle dates and times confidently."
"I found the examples for working with time zones and durations incredibly helpful for my projects."
"This part demystified datetime operations, making real-world applications much easier."
Explores less common but vital Python numeric types.
"I really appreciated the deep dive into `Decimal` and `Fraction` types; they cleared up many misconceptions."
"This course helped me understand the nuances of Python's numeric types beyond the basics."
"Finally, a course that explains complex numbers and their practical use cases clearly."
Addresses common shortcomings of basic Python numeric types.
"This course perfectly addresses the precision issues I've had with `float` in financial calculations."
"I now understand why and when `Decimal` is crucial, which I didn't get from other basic courses."
"It bridges the gap between basic Python and more robust numerical programming practices."
The computational geometry section is specific, not universally applicable.
"The `computational geometry` part felt a bit out of place for my needs, but it was well-explained."
"While interesting, the geometry segment wasn't directly relevant to my data analysis work."
"I found the geometry topic quite advanced and less connected to the other numerical content."

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Core Python 3: Numeric Types, Dates, and Times with these activities:
Organize course materials
Organize and prepare physical or digital files for use in the classroom, to ensure you have the materials you need to learn this subject.
Show steps
  • Gather physical materials such as textbooks, notes, and handouts
  • Create a digital folder for electronic files
  • Categorize and label materials for easy reference
  • Backup important materials in multiple locations
Follow online Python tutorials
Seek out and complete online tutorials to reinforce your understanding of Python numeric types and their applications.
Browse courses on Python Programming
Show steps
  • Identify reputable online platforms or instructors
  • Select tutorials that align with your learning objectives
  • Follow the instructions and complete the exercises
  • Review the material and take notes
Complete Python coding exercises
Practice writing and executing Python code to solidify your understanding of numeric types and their applications.
Browse courses on Python Programming
Show steps
  • Find coding exercises online or in textbooks
  • Attempt to solve the exercises on your own
  • Review the solutions and identify areas for improvement
  • Repeat the process to strengthen your skills
Three other activities
Expand to see all activities and additional details
Show all six activities
Join a Python study group
Collaborate with peers to discuss concepts, share knowledge, and work on projects related to Python numeric types.
Browse courses on Python Programming
Show steps
  • Find or create a study group with other Python learners
  • Establish regular meeting times and discuss topics
  • Work together on projects or exercises
  • Provide and receive feedback to enhance understanding
Create a Python code library
Develop a collection of reusable Python code snippets and functions that demonstrate the use of numeric types.
Browse courses on Python Programming
Show steps
  • Plan the structure and organization of the code library
  • Write and test code snippets for various numeric operations
  • Document the code clearly and provide examples
  • Share the code library with others
Mentor junior Python learners
Share your knowledge and skills by mentoring junior Python learners, helping them understand and apply numeric types.
Browse courses on Python Programming
Show steps
  • Identify opportunities to mentor others
  • Provide guidance and support to junior learners
  • Share resources and best practices
  • Monitor progress and provide feedback

Career center

Learners who complete Core Python 3: Numeric Types, Dates, and Times will develop knowledge and skills that may be useful to these careers:
Quantitative Trader
A Quantitative Trader utilizes Python in many aspects of their work, from data analysis to model building. Additionally, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate financial analysis. Those interested in this field would do well to take this course.
Data Scientist
A Data Scientist needs to understand how to use Python's numeric types in order to perform accurate and reliable analysis. This course provides a great introduction to Python's numeric types and how to use them in a variety of situations. Those interested in a career as a Data Scientist would benefit from taking this course.
Statistician
A Statistician needs to understand how to use Python's numeric types in order to perform accurate and reliable analysis. This course provides a great introduction to Python's numeric types and how to use them in a variety of situations. Those interested in a career as a Statistician would benefit from taking this course.
Computational Scientist
A Computational Scientist uses Python in nearly every aspect of the role. In addition, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate data analysis. Those interested in this field would do well to take this course.
Machine Learning Engineer
A Machine Learning Engineer uses Python in nearly every aspect of the role. In addition, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate data analysis. Those interested in this field would do well to take this course.
Software Developer
A Software Developer will use Python's date and time features in many applications and products. This course provides a great introduction to those features and how to use them. Those interested in a career as a Software Developer should take this course.
Quantitative Analyst
A Quantitative Analyst utilizes Python in many aspects of their work, from data analysis to model building. Additionally, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate financial analysis. Those interested in this field would do well to take this course.
Actuary
An Actuary utilizes Python in many aspects of their work, from data analysis to model building. Additionally, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate financial analysis. Those interested in this field would do well to take this course.
Operations Research Analyst
An Operations Research Analyst needs to understand how to use Python's numeric types in order to perform accurate and reliable analysis. This course provides a great introduction to Python's numeric types and how to use them in a variety of situations. Those interested in a career as an Operations Research Analyst would benefit from taking this course.
Software Engineer
A Software Engineer needs to understand how to use Python's numeric types in order to perform accurate and reliable analysis. This course provides a great introduction to Python's numeric types and how to use them in a variety of situations. Those interested in a career as a Software Engineer would benefit from taking this course.
Risk Analyst
A Risk Analyst utilizes Python in many aspects of their work, from data analysis to model building. Additionally, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate financial analysis. Those interested in this field would do well to take this course.
Data Analyst
A Data Analyst uses Python in nearly every aspect of the role. In addition, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate data analysis. Those interested in this field would do well to take this course.
Data Engineer
A Data Engineer will use Python's date and time features in many applications and products. This course provides a great introduction to those features and how to use them. Those interested in a career as a Data Engineer should take this course.
Financial Analyst
A Financial Analyst will use Python's date and time features in many applications and products. This course provides a great introduction to those features and how to use them. Those interested in a career as a Financial Analyst should take this course.
Business Analyst
A Business Analyst utilizes Python in many aspects of their work, from data analysis to model building. Additionally, this course covers topics such as The Decimal Module and The Fractions Module which are essential for accurate financial analysis. Those interested in this field would do well to take this course.

Reading list

We've selected 15 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Core Python 3: Numeric Types, Dates, and Times.
Provides a comprehensive collection of practical recipes and examples that demonstrate how to solve common programming problems in Python. It covers a wide range of topics, including numeric types, dates, and times, making it a valuable resource for anyone who wants to learn more about these topics.
Provides a concise and comprehensive overview of the Python programming language.
Provides a comprehensive reference to the Python programming language.
Provides a quick and easy introduction to the Python programming language.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Similar courses are unavailable at this time. Please try again later.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser