<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye" -->

---
title: Try THIS Next Time You Use Python #coding #python
description: Python's math module gives you constants that save you from typing them manually. After importing math, you get pi, e, tau, infinity, negative infinity, and...
canonical: https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Try THIS Next Time You Use Python #coding #python | daily.dev
og:description: Python's math module gives you constants that save you from typing them manually. After importing math, you get pi, e, tau, infinity, negative infinity, and...
og:url: https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye
og:image: https://api.daily.dev/og/posts/c7sfaGRye.png
og:image:alt: Try THIS Next Time You Use Python #coding #python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Try THIS Next Time You Use Python #coding #python

**[Indently](https://daily.dev/sources/indently)** · 1 min read · 0 upvotes · 0 comments

## Summary

Python's math module gives you constants that save you from typing them manually. After importing math, you get pi, e, tau, infinity, negative infinity, and nan. These are all the constants the math module provides.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=pkVd71ohW98>

## Questions this post answers

### What constants are available in Python's math module

Python's math module provides pi, e (Euler's number), tau, infinity (math.inf), negative infinity, and nan (not a number) as built-in constants. Importing the math module gives access to these values directly, so you don't need to manually type long decimal approximations each time you need them.

_Developers writing math-heavy Python scripts can find similar quick reference tips on daily.dev._

## Similar posts on daily.dev

- [Python Constants: Improve Your Code's Maintainability Quiz – Real Python](https://daily.dev/posts/python-constants-improve-your-code-s-maintainability-quiz-real-python-cbbc1blnd) · Real Python · 1 upvotes · 0 comments
- [Python 101 — Before Learning Python](https://daily.dev/posts/python-101-before-learning-python-ktrhtk3s1) · Medium · 1 upvotes · 0 comments
- [And now for something completely different](https://daily.dev/posts/and-now-for-something-completely-different-egwh0kgkz) · Planet Python · 1 upvotes · 0 comments
- [A Beginner's Guide to Python: Hands-On Projects to Get You Coding](https://daily.dev/posts/a-beginner-s-guide-to-python-hands-on-projects-to-get-you-coding-zhoubf3jh) · freeCodeCamp · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Try THIS Next Time You Use Python #coding #python","url":"https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye"},"datePublished":"2026-11-05T02:58:31.107Z","dateModified":"2026-11-05T02:58:46.992Z","description":"Python's math module gives you constants that save you from typing them manually. After importing math, you get pi, e, tau, infinity, negative infinity, and...","image":"https://i.ytimg.com/vi/pkVd71ohW98/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/pkVd71ohW98/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Indently","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Indently","logo":"https://media.daily.dev/image/upload/s--u6wAXJI9--/f_auto/v1725038127/logos/indently","url":"https://daily.dev/sources/indently"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"Try THIS Next Time You Use Python #coding #python","description":"Python's math module gives you constants that save you from typing them manually. After importing math, you get pi, e, tau, infinity, negative infinity, and...","thumbnailUrl":"https://i.ytimg.com/vi/pkVd71ohW98/sddefault.jpg","uploadDate":"2026-11-05T02:58:31.107Z","duration":"PT1M","url":"https://api.daily.dev/r/c7sfaGRye","embedUrl":"https://www.youtube.com/embed/pkVd71ohW98"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Indently","item":"https://daily.dev/sources/indently"},{"@type":"ListItem","position":3,"name":"Try THIS Next Time You Use Python #coding #python"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/try-this-next-time-you-use-python-coding-python-c7sfagrye#faq","mainEntity":[{"@type":"Question","name":"What constants are available in Python's math module","acceptedAnswer":{"@type":"Answer","text":"Python's math module provides pi, e (Euler's number), tau, infinity (math.inf), negative infinity, and nan (not a number) as built-in constants. Importing the math module gives access to these values directly, so you don't need to manually type long decimal approximations each time you need them. Developers writing math-heavy Python scripts can find similar quick reference tips on daily.dev."}}]}
```

