x = input("2+2")
if x == "4":
or if you want the if statment to have a int you can use
x = int(input("2+2"))
if x == 4:
Your code appears to be working. If someone helped you, note you can upvote or mark them as best answer.
If you mean you aren't seeing the prompt, that's just how SoloLearn works (in batch mode, input is gathered before prompts are shown).