12th Class Computers Science Sample Paper Python Revision Tour-Sample Paper-1

  • question_answer
    What will be the output of the given statement, if you will enter 9 7 a,b=int(input("Enter a Number")),int(input("Enter second number")) print(a.b)

    A) 9 7                   

    B) 9 0

    C) Generate error               

    D) none of the above

    Correct Answer: A

    Solution :

    [a] As per multiple assignment i.e. assigning multiple values to multiple variables like
    a,b,c=5,10,15
    The statement is true and it will print 97


You need to login to perform this action.
You will be redirected in 3 sec spinner