Actually, no, it doesn’t—but its actually a great analogy for what’s happening below. The user’s input is treated as a string, e.g. "2", and you then convert it to an integer number, e.g. 2, with int(). However, in your if block, you are checking if it is the string"2" rather than the integer2, which are not the same thing, just like writing the character "2" on a piece of paper is not the same as having two apples (or two of anything). You should either check if User_Input is the integer 2 in your if block, or don’t convert it to int() when you read it in, depending on your requirements.
It would be helpful if you provided a more complete example, and in particular provided the actual full error message and traceback you are getting, as otherwise we are left to merely guess at what is going on. Entry() could be anything, but I’m guessing you’re talking about a tkinter.ttk.Entry.
While there could (and likely are) other issues here, the most relevant to your question follows directly from the above. As before, TextEntry is not a string, like the "2" that it is being compared to, but rather a tkinter.ttk.Entry object. In order to get the result as a string, you need to call the .get() method on the object once the user has responded to it, plus some manipulation. A quick Google revealed a potentially useful Stack Overflow answer discussing more, and you might also want to read the documentation.
(As a side note, searching Google for your problem is often a very useful tool, so long as you try to learn from what you find rather than simply copying and pasting.)
Ohh ok so it is not as easy as I thought. Anyways thanks for the help. The stackoverflow answer did help me in understanding what you were trying to say. While writing this post I made a error of making the ‘2’ a string actually it should be a integer. Anyways thanks for this help, this indeed did help me. Thanks for wishing me good luck. Have a nice day/night