News

In Python finally keyword is the keyword that is executed always irrespective of whether an exception has occured or not after try and except blocks. **Syntax**:- ...
#this code handles value errors when user enter input of wrong data type try: age=int (input ("enter your age--")) salary=20000 credit_score= (salary/age)/100 print (credit_score) except ValueError: ...