Q. Find the errors in following code fragment: (The input entered is XI)


c = int(input("Enter your class "))

print ("Your class is", c)


Answer =

Error occur due to use of int() function in the program, if int () function removed from program then Output is:-


Enter your class XI

Your class is XI

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post