Generate an Exception
Can you generate a Value Error?
>>> import math >>> ball = int(input("Enter a positive number: ")) >>> bucket = math.sqrt(n) >>> print(f'Square Root of {n} is {bucket}')

Handling Exceptions
Fill in the blanks to make a program that takes number of students as input and calculates average marks
total_marks = 468 try: input = "10" # typecast input to correct data type number_of_students = (input) average_marks = total_marks/number_of_students except : print("Number of students has to be an Integer") finally: print("Found the average marks")