[Python] Get infinity when dividing by zero

Discussão em 'Python' iniciado por Stack, Setembro 3, 2025.

  1. Stack

    Stack Membro Participativo

    Is it possible to assign say infinity to something divided by 0 instead of it throwing ZeroDivisionError?

    Like a function that assigns infinity to something/0.

    Continue reading...

Compartilhe esta Página