🔥 Welcome to my blog! Latest updates available now. Visit daily! 🔥 🔥 Click Here for Latest Updates – Visit My Blog 🔥
🔥 Latest Updates 📊 GP Grade Finder 📢 Government Services Info 🆕 New Schemes Updates

Runtime Errors in Python

 


👉Also known as exceptions.

While executing the program if something goes wrong because of end user input or programming logic or memory problems,then we will get Runtime Errors.


Ex: print(10/0)

==>Zero DivisionError: division by zero


print(10/"ten") 

==>TypeError: unsupported operand type(s) for /: 'int' and 'str'


x=int(input("Enter Number:"))

print(x)


D:\Python3>py Excep.py

Enter Number:ten


ValueError: invalid literal for int() with base 10: 'ten'


✅Note: Exception Handling concept applicable for Runtime Errors but not for syntax errors.

No comments:

Post a Comment

Thank you Very Much.For Given Comment

House Tax Properties change option enabled

-->à°¸్వర్à°£ à°ªంà°šాయతీ à°¸ైà°Ÿ్ à°¨ంà°¦ు à°‡ంà°Ÿి పన్à°¨ు (House Tax) à°¸ంà°¬ంà°§ిà°¤ à°¡ేà°Ÿా à°Žంà°Ÿ్à°°ీà°²ో à°•్à°°ింà°¦ి à°µివరాà°²ు తప్à°ªుà°—ా నమోà°¦ు à°…à°¯ిà°¨ à°¸ందర్à°­ాà°²్à°²ో సరిà°šేà°¸ుà°•ుà°¨ేంà°¦ుà°•ు ...