2
Question Question 2
What will be the output, if input for both the statements is 5 + 4/2.
6 == input ("Value 1:")
6 == int(input ("value 2:"))
Answer
Output of first statement is False as '5 + 4/2' is entered as a string so it cannot be equal to the number 6.
The second statement gives an error as int() function cannot convert the string '5 + 4/2' to a valid integer.