Core Python: Numeric Types, Dates, and Times

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.
Course info
Rating
(20)
Level
Intermediate
Updated
Mar 10, 2020
Duration
55m
Table of contents
Description
Course info
Rating
(20)
Level
Intermediate
Updated
Mar 10, 2020
Duration
55m
Description

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: 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.

About the author
About the author

Austin is a founding director of Sixty North, a software consulting, training, and application development company. He's a native of Texas but currently lives in Norway where he writes software, runs a local software interest group, and presents and teaches whenever he can.

More from the author
Core Python: Byte Oriented Programming
Advanced
1h 43m
Mar 31, 2021
Core Python: Advanced Flow Control
Advanced
1h 41m
Jan 11, 2021
The Future of Python
Beginner
45m
Sep 3, 2020
More courses by Austin Bingham
About the author

Robert Smallshire is a founding director of Sixty North, a software product and consulting business in based in Norway. He has held several senior software architecture and technical management roles, and he is a regular conference speaker. Python is his weapon of choice.

More from the author
Core Python: Byte Oriented Programming
Advanced
1h 43m
Mar 31, 2021
Core Python: Advanced Flow Control
Advanced
1h 41m
Jan 11, 2021
More courses by Robert Smallshire
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, everyone. My name is Austin Bingham, and welcome to my course, Core Python: Numeric, Types, Dates, and Times. I'm a founder and principal consultant at Sixty North. The basic Python numeric types, int and float, are familiar to most programmers and are the right tools for many numerical computations. There are times though when more specialized numeric types are needed and where naively using the basic types can lead to incorrect results. In this course, we look at a number of specialized numeric types, the times when it's appropriate to use them, and what can happen if you use inappropriate numeric types. Some of the major topics we'll cover include the decimal type for performing precise base‑10 calculations, the fraction type for representing rational numbers using integral numerators and denominators, the complex type for working with numbers with an imaginary component, built‑in functions for working with numeric types generically, Python's datetime package for working with dates and times. By the end of this course, you'll have a good overview of the numeric types that Python provides, and you'll start to develop a sense of when and how to best deploy them. Before beginning this course, you should be familiar with the basic numeric types, int and float. You should also be broadly familiar with the basics of the Python language, including functions and working with modules. I hope you'll join me on this journey to learn more about numeric types in Python with the Core Python: Numeric Types, Dates, and Times course at Pluralsight.