Reading a traceback
Në shqip: Leximi i mesazhit të gabimit
ShpjegimiSQ
Kur Python-i rrëzohet, të jep një „traceback“. Lexoje nga poshtë: rreshti i fundit tregon llojin e gabimit dhe pse; rreshtat sipër tregojnë rrugën — në cilin skedar dhe rresht ndodhi.
EnglishEN
When Python crashes, it gives you a “traceback”. Read it from the bottom: the last line shows the error type and why; the lines above show the path — which file and line it happened on.
Si ta mendosh
Si gjurmët në borë: ndiqi mbrapsht dhe gjen ku filloi gjithçka.
Lexoje në anglisht
Like footprints in snow: follow them back and you find where it all started.
Shembull koditext
Traceback (most recent call last):
File "notat.py", line 3, in <module>
print(mesatarja([]))
ZeroDivisionError: division by zero