Skip navigation

Zastosuj identyfikator do podlinkowania lub zacytowania tej pozycji: http://hdl.handle.net/20.500.12128/23166
Tytuł: Python Intermediate
Autor: Michaličková, Viera
Hernández-Figueroa, Zenón José
González-Domínguez, José Daniel
Rodríguez-del-Pino, Juan Carlos
Přichystal, Jan
Chromiński, Kornel
Słowa kluczowe: Python; scripting language; programming
Data wydania: 2021
Wydawca: Nitra : Constantine the Philosopher University in Nitra
Abstrakt: Let us test the following program, e. g. with the input values 7 and 2: a = int(input('a: ')) b = int(input('b: ')) print(a // b, a % b.The Output: a: 7 b: 2 3 1 Correct results (division and remainder) were calculated. Now again, but with other input values: The Output: a: 7 b: 0 Traceback (most recent call last): File ".../test.py", line 3, in <module> print(a // b, a % b) ZeroDivisionError: integer division or modulo by zero An runtime error occurred while executing the program as we tried to divide a number by zero. The program got into an exceptional state (something unexpected or abnormal has happened), so its execution was stopped. We say, that an exception was raised. In this case, it was the ZeroDevisionError (we can see it from the output message) (...).
URI: http://hdl.handle.net/20.500.12128/23166
ISBN: 978-80-558-1784-2
Pojawia się w kolekcji:Książki/rozdziały (WNŚiT)

Pliki tej pozycji:
Plik Opis RozmiarFormat 
Michalickova_Python_intermediate.pdf1,43 MBAdobe PDFPrzejrzyj / Otwórz
Pokaż pełny rekord


Uznanie autorstwa - użycie niekomercyjne, bez utworów zależnych 3.0 Polska Creative Commons Creative Commons