Posts

My daily goals of writing python

#friday try:   first =int(input('Enter a number:')) except Exception as e:   print(f'you should enter numbers only {e}')   print('thanks for your input')   try:   a= int(input("Enter first number:"))   b=int(input("Enter second number:"))   except Exception as e:     print(f'you should enter numberss only') if (b==0):   raise ZeroDivisionError ('program is not created for divison by zero') print(f'your divison is: {a/b}') #final keyword def func():   try:     first =int(input('Enter a number:'))     return   except Exception as e:     print(f'you should enter numbers only {e}')     return   else:       print('else')       return # we are using final keyword and it always print while using a function final value will automatically print and we don't have to return the value   finally:       print('This is final') func()  #pyt...