Real Python
Real Python
  • 650
  • 9 128 398
Python Doesn't Round Numbers the Way You Might Think | Real Python Podcast #211
Does Python round numbers the same way you learned back in math class? You might be surprised by the default method Python uses and the variety of ways to round numbers in Python. Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects.
👉 Links from the show: realpython.com/podcasts/rpp/211/
Christopher discusses his recent video course, "Rounding Numbers in Python." He covers rounding bias and how to avoid introducing it into your dataset. We dig into the various rounding strategies and how to implement them in Python.
We also share several other articles and projects from the Python community, including a news roundup, a fast Python linter for error-free and maintainable code, the decline of the user interface, more thoughts on Python in Excel, a discussion about calendar versioning for Python, a financial database as a Python module, and a project to prettify the colors of your terminal user interfaces.
This episode is sponsored by Sentry.
Topics:
- 00:00:00 -- Introduction
- 00:02:06 -- NumPy 2.0.0 Release Notes
- 00:02:52 -- Python 3.13.0 beta 3 released
- 00:03:05 -- Announcing the PSF Board Candidates for 2024!
- 00:03:27 -- Prohibiting Outlook Email Domains
- 00:04:31 -- Ruff: A Python Linter for Error-Free and Maintainable Code
- 00:09:31 -- Sponsor: Sentry
- 00:10:35 -- The Decline of the User Interface
- 00:19:14 -- My Thoughts on Python in Excel
- 00:26:30 -- Rounding Numbers in Python
- 00:30:53 -- Video Course Spotlight
- 00:32:13 -- PEP 2026: Calendar Versioning for Python
- 00:42:37 -- Financial Database as a Python Module
- 00:45:34 -- prettypretty: Build Awesome Terminal User Interfaces
- 00:47:48 -- Thanks and goodbye
👉 Links from the show: realpython.com/podcasts/rpp/211/
zhlédnutí: 332

Video

Working With Constants in Python
zhlĂ©dnutĂ­ 792Pƙed 6 hodinami
This is a preview of the video course, "Defining Python Constants for Code Maintainability." In programming, the term constant refers to names representing values that don’t change during a program’s execution. Constants are a fundamental concept in programming, and Python developers use them in many cases. However, Python doesn’t have a dedicated syntax for defining constants. In practice, Pyt...
Creating a Guitar Synthesizer & Generating WAV Files With Python | Real Python Podcast #210
zhlĂ©dnutĂ­ 619Pƙed 20 hodinami
What techniques go into synthesizing a guitar sound in Python? What higher-level programming and Python concepts can you practice while building advanced projects? This week on the show, we talk with Real Python author and core team member Bartosz ZaczyƄski about his recent step-by-step project, Build a Guitar Synthesizer: Play Musical Tablature in Python. 👉 Links from the show: realpython.com/...
Starting to Build a GUI in Python With PyQt
zhlĂ©dnutĂ­ 1,1KPƙed 22 hodinami
This is a preview of the video course, "Build a GUI Calculator With PyQt and Python." Even though web and mobile applications appear to have taken over the software development market, there’s still demand for traditional graphical user interface (GUI) desktop applications. If you’re interested in building these kinds of applications in Python, then you’ll find a wide variety of libraries to ch...
Python's Command-Line Utilities & Music Information Retrieval Tools | Real Python Podcast #208
zhlĂ©dnutĂ­ 726Pƙed 14 dny
What are the built-in Python modules that can work as useful command-line tools? How can these tools add more functionality to Windows machines? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects. 👉 Links from the show: realpython.com/podcasts/rpp/209/ Christopher shares an article by Trey Hunner about Python's extensive collectio...
Introduction to Rounding Numbers in Python
zhlĂ©dnutĂ­ 499Pƙed 14 dny
This is a preview of the video course, "Rounding Numbers in Python." Understanding how rounding works in Python can help you avoid biasing your dataset. This is an important skill. After all, drawing conclusions from biased data can lead to costly mistakes. This is a portion of the complete course, which you can find here: realpython.com/courses/rounding-numbers-python/ The rest of the course c...
Detecting Outliers in Your Data With Python | Real Python Podcast #208
zhlĂ©dnutĂ­ 815Pƙed 21 dnem
How do you find the most interesting or suspicious points within your data? What libraries and techniques can you use to detect these anomalies with Python? This week on the show, we speak with author Brett Kennedy about his book "Outlier Detection in Python." 👉 Links from the show: realpython.com/podcasts/rpp/208/ Brett describes initially getting involved with detecting outliers in financial ...
Using Python to List the files in a Directory
zhlĂ©dnutĂ­ 800Pƙed 21 dnem
This is a preview of the video course, "Listing All Files in a Directory With Python." Getting a list of all the files and folders in a directory is a natural first step for many file-related operations in Python. When looking into it, though, you may be surprised to find various ways to go about it. This is a portion of the complete course, which you can find here: realpython.com/courses/effic...
Decomposing Software Problems & Avoiding the Trap of Clever Code | Real Python Podcast #207
zhlĂ©dnutĂ­ 682Pƙed 28 dny
How do you effectively break a software problem into individual steps? What are signs you're writing overly clever code? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects. 👉 Links from the show: realpython.com/podcasts/rpp/207/ We discuss an article about de-warping images of book pages. We both found the piece a good study on de...
Python Interfaces - Understanding Informal Interfaces
zhlĂ©dnutĂ­ 1,8KPƙed měsĂ­cem
This is a preview of the video course, "Python Interfaces: Object-Oriented Design Principles." Interfaces play an important role in software engineering. As an application grows, updates and changes to the code base become more difficult to manage. More often than not, you wind up having classes that look very similar but are unrelated, which can lead to some confusion. This is a portion of the...
Building Python Unit Tests & Exploring a Data Visualization Gallery | Real Python Podcast #206
zhlĂ©dnutĂ­ 1,1KPƙed měsĂ­cem
How do you start adding unit tests to your Python code? Can the built-in unittest framework cover most or all of your needs? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects. 👉 Links from the show: realpython.com/podcasts/rpp/206/ We dig into a recent tutorial by Leodanis Pozo Ramos about writing unit tests using Python's unitte...
Working With Python's Iterators, Iterables, and Iteration
zhlĂ©dnutĂ­ 910Pƙed měsĂ­cem
This is a preview of the video course, "Efficient Iterations With Python Iterators and Iterables." Python’s iterators and iterables are two different but related tools that come in handy when you need to iterate over a data stream or container. Iterators power and control the iteration process, while iterables typically hold data that you want to iterate over one value at a time. This is a port...
Start Working With Python's Tkinter GUI Framework
zhlĂ©dnutĂ­ 969Pƙed měsĂ­cem
This is a preview of the video course, "Building a Python GUI Application With Tkinter." Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. Tkinter has several strengths. It’s cross-platform, so the same code works on Windows, macOS, and Linux. Visual elements are rendered using native operating system elements, so applications b...
Considering Accessibility & Assistive Tech as a Python Developer | Real Python Podcast #205
zhlĂ©dnutĂ­ 586Pƙed měsĂ­cem
What's it like to learn Python as a visually impaired or blind developer? How can you improve the accessibility of your Python web applications and learn current guidelines? This week on the show, Real Python community member Audrey van Breederode discusses her programming journey, web accessibility, and assistive technology. 👉 Links from the show: realpython.com/podcasts/rpp/205/ Audrey shares...
HTML Basics for Python Developers
zhlĂ©dnutĂ­ 956Pƙed měsĂ­cem
This is a preview of the video course, "HTML and CSS Foundations for Python Developers." If you’re interested in web development with Python, then knowing HTML and CSS will help you understand web frameworks like Django and Flask better. But even if you’re just getting started with Python, HTML and CSS can enable you to create small websites to impress your friends. This is a portion of the com...
Querying OpenStreetMaps via API & Lazy Evaluation in Python | Real Python Podcast #204
zhlĂ©dnutĂ­ 672Pƙed měsĂ­cem
Querying OpenStreetMaps via API & Lazy Evaluation in Python | Real Python Podcast #204
Methods to Flatten a List of Lists in Python
zhlĂ©dnutĂ­ 1KPƙed měsĂ­cem
Methods to Flatten a List of Lists in Python
Embarking on a Relaxed and Friendly Python Coding Journey | Real Python Podcast #203
zhlĂ©dnutĂ­ 706Pƙed 2 měsĂ­ci
Embarking on a Relaxed and Friendly Python Coding Journey | Real Python Podcast #203
Using Global Variables in Python Functions
zhlĂ©dnutĂ­ 1,2KPƙed 2 měsĂ­ci
Using Global Variables in Python Functions
Pydantic Data Validation & Python Web Security Practices | Real Python Podcast #202
zhlĂ©dnutĂ­ 821Pƙed 2 měsĂ­ci
Pydantic Data Validation & Python Web Security Practices | Real Python Podcast #202
Working With Scopes Practice: Python Basics Exercises
zhlĂ©dnutĂ­ 884Pƙed 2 měsĂ­ci
Working With Scopes Practice: Python Basics Exercises
Decoupling Systems to Get Closer to the Data | Real Python Podcast #201
zhlĂ©dnutĂ­ 741Pƙed 2 měsĂ­ci
Decoupling Systems to Get Closer to the Data | Real Python Podcast #201
Understanding Python's raise for Crafting Exceptions
zhlĂ©dnutĂ­ 874Pƙed 2 měsĂ­ci
Understanding Python's raise for Crafting Exceptions
Avoiding Error Culture and Getting Help Inside Python | Real Python Podcast #200
zhlĂ©dnutĂ­ 671Pƙed 2 měsĂ­ci
Avoiding Error Culture and Getting Help Inside Python | Real Python Podcast #200
Creating QR Codes with Python
zhlĂ©dnutĂ­ 934Pƙed 2 měsĂ­ci
Creating QR Codes with Python
Leveraging Documents and Data to Create a Custom LLM Chatbot | Real Python Podcast #199
zhlĂ©dnutĂ­ 870Pƙed 3 měsĂ­ci
Leveraging Documents and Data to Create a Custom LLM Chatbot | Real Python Podcast #199
Working with Tensors and TensorFlow
zhlĂ©dnutĂ­ 1,1KPƙed 3 měsĂ­ci
Working with Tensors and TensorFlow
Build a Video Game With Python Turtle & Visualize Data in Seaborn | Real Python Podcast #198
zhlĂ©dnutĂ­ 599Pƙed 3 měsĂ­ci
Build a Video Game With Python Turtle & Visualize Data in Seaborn | Real Python Podcast #198
Hunting for Python Easter Eggs - Code Conversation
zhlĂ©dnutĂ­ 419Pƙed 3 měsĂ­ci
Hunting for Python Easter Eggs - Code Conversation
Using Python in Bioinformatics and the Laboratory | Real Python Podcast #197
zhlĂ©dnutĂ­ 801Pƙed 3 měsĂ­ci
Using Python in Bioinformatics and the Laboratory | Real Python Podcast #197

Komentáƙe

  • @gedtoon6451
    @gedtoon6451 Pƙed dnem

    why not use IPython?

    • @gedtoon6451
      @gedtoon6451 Pƙed dnem

      Lack of native windows support makes this a non-starter.

  • @ag49521
    @ag49521 Pƙed dnem

    I didn't know you could make a 15 min video about constants.

  • @rishiraj2548
    @rishiraj2548 Pƙed dnem

    Thanks

  • @bobfarrell8219
    @bobfarrell8219 Pƙed 2 dny

    Thanks a lot for making this video.

  • @NicolasChanCSY
    @NicolasChanCSY Pƙed 2 dny

    We can also make use of the `typing.Final` type annotation to indicate a variable is not supposed to be change. Type checkers will raise an error message if the variable is reassigned, redefined, or overridden. While this cannot stop any change in run-time, it certainly helps identify such unintended behaviour early in compile-time.

  • @cigdemylmaz1532
    @cigdemylmaz1532 Pƙed 2 dny

    This is the clearest, best tutorial I have come across. Thank you very much..

  • @alcar32sharif
    @alcar32sharif Pƙed 2 dny

    Constants are a lie in Python. Every variable is reassignable.

  • @rishiraj2548
    @rishiraj2548 Pƙed 2 dny

    Good day greetings

  • @serychristianrenaud
    @serychristianrenaud Pƙed 2 dny

    Thanks

  • @ilayohana3150
    @ilayohana3150 Pƙed 4 dny

    Great video, simple and explanatory. You forgot to mention how the pickle is not a true copy

  • @fastrobreetus
    @fastrobreetus Pƙed 5 dny

    good to know!

  • @annebannydelatorre7935

    Came here for the same question! I’m a total extrovert with 7 yrs of sales experience. I want to shift to becoming a software engineer.

  • @fastrobreetus
    @fastrobreetus Pƙed 6 dny

    great video

  • @eashwarinfosys9856
    @eashwarinfosys9856 Pƙed 7 dny

    I made these changes to the code in my end. from functools import reduce instead of val['age'], I had to use val.age. Only then it worked

  • @rishiraj2548
    @rishiraj2548 Pƙed 8 dny

    đŸ‘đŸ»

  • @antikoerper256
    @antikoerper256 Pƙed 8 dny

    thanks a lot

  • @TheDavidlloydjones
    @TheDavidlloydjones Pƙed 9 dny

    The word you're looking for is "gooey," spelled GUI. Nobody has ever heard of this gee-you-eye thingie you're talking about, and you come off sounding both weird and iggerant.

  • @user-ol5cm7jd9q
    @user-ol5cm7jd9q Pƙed 12 dny

    Thanks Christopher !

  • @rishiraj2548
    @rishiraj2548 Pƙed 15 dny

    🙂👍

  • @BUY_YOUTUB_VIEWS_252
    @BUY_YOUTUB_VIEWS_252 Pƙed 16 dny

    Thumbs up for your hard work and dedication!

  • @1234567qwerification
    @1234567qwerification Pƙed 16 dny

    4:47 You get 1.0, not 1 :)

  • @rishiraj2548
    @rishiraj2548 Pƙed 16 dny

    👍

  • @puffinjuice
    @puffinjuice Pƙed 16 dny

    This is an important course because rounding numbers doesnt make sense in python! I was shocked to find there is no function to perform swedish rounding. Even if they think its not a good idea to use this rounding method a function should be available in one of the foundational packages.

  • @Investmentpunk1
    @Investmentpunk1 Pƙed 16 dny

    Who are the 2 guys presenting the topic in the video? It's an unbelievable good presentation and explanation of the topic! Did you guys do any other video tutorials or content? Where can i find it?

  • @insightful_code
    @insightful_code Pƙed 16 dny

    Work with Python in Windows is laughable đŸ€·â€â™‚

  • @zunaidhassan9662
    @zunaidhassan9662 Pƙed 18 dny

    Thanks for the video. Where is the GIL follow-up video? Couldn't find in the channel.

  • @artistpw
    @artistpw Pƙed 18 dny

    This really helps to see how to use pickle. Thanks so much for making this video. It would be nice if you might include this code into a github repository.

  • @monad99
    @monad99 Pƙed 18 dny

    it's not pp8 it's pEp8

  • @NickSangiamo
    @NickSangiamo Pƙed 19 dny

    Thank you for making this video! You explained the information so clearly and I was able to follow along very easily as a new Python student. :)

  • @magno5157
    @magno5157 Pƙed 22 dny

    It's kinda cringe to have one person who has all the answers and the other pretends like he doesn't know and asks questions. Could you all just chat normally without having any one of you pretend like he doesn't know the topic at all?

  • @rishiraj2548
    @rishiraj2548 Pƙed 22 dny

    🎉

  • @ibrahimoglu
    @ibrahimoglu Pƙed 23 dny

    👍

  • @rishiraj2548
    @rishiraj2548 Pƙed 23 dny

    🙂👍

  • @MadSimple
    @MadSimple Pƙed 24 dny

    Check out Illinois Mono

  • @wzrd3311
    @wzrd3311 Pƙed 27 dny

    Criminally underrated. What a succinct explanation for a library.

  • @rishiraj2548
    @rishiraj2548 Pƙed 29 dny

    Good evening

  • @edtechbymeera
    @edtechbymeera Pƙed měsĂ­cem

    Thank you for the eye-opener guide

  • @Dhieumatiop
    @Dhieumatiop Pƙed měsĂ­cem

    Thank a lot I understand now

  • @yuvaraj9840
    @yuvaraj9840 Pƙed měsĂ­cem

    Good topic and this is podcast how do we know the real tutorial in screen. Please guide me

    • @realpython
      @realpython Pƙed měsĂ­cem

      All the links from the show: realpython.com/podcasts/rpp/206/

  • @rishiraj2548
    @rishiraj2548 Pƙed měsĂ­cem

    👍👍

  • @nayankothari4725
    @nayankothari4725 Pƙed měsĂ­cem

    Thanks for sharing this amazing tutorial ❀ @Real python

  • @ebouchut
    @ebouchut Pƙed měsĂ­cem

    Thank you. It is clear concise and helpful

  • @darwinvasquez1051
    @darwinvasquez1051 Pƙed měsĂ­cem

    Really good explanation, thanks

  • @mikesfarmmikesfarm3977
    @mikesfarmmikesfarm3977 Pƙed měsĂ­cem

    It looks like if you create a local variable in a function and return it to the main, that it becomes a global ?

  • @hanielahi247
    @hanielahi247 Pƙed měsĂ­cem

    Not bad 😔

  • @itpugil
    @itpugil Pƙed měsĂ­cem

    Finally caught up to this podcast. I use to listen to a lot of your videos to keep my motivation up. Until I slacked off and its been almost a year. Now I'm reviewing all the notes I took so I can proceed where I left off.

  • @htg7127
    @htg7127 Pƙed měsĂ­cem

    Youre a hero

  • @II-er7gj
    @II-er7gj Pƙed měsĂ­cem

    this really sucks!!! I have learned python beyond these limits what offer this PySimpleGUI.

  • @yvanpearson7024
    @yvanpearson7024 Pƙed měsĂ­cem

    great talk

  • @larry78211
    @larry78211 Pƙed měsĂ­cem

    I can see why he is biased.....His cert was a bogus 10 question exam. Ib addituib, most people graduate college and the only skill they've developed is how to cheat their way through school. .