Python input problem

hello guys im a beginner in learning python.
i would like to ask if my code shows x=input(’’)
what should i add so that it can show ‘input exists’ if i entered the same input
for example:
my input: hello world
my second input: hello world
how can the output be ‘input exists’?
thanks a lot

You need to save the old input in a variable, and then compare the new
import to the saved input and see if they are equal.

 first = 'hello'
 second = 'world'
 if first == second:
     print('input is old and boring')
 else:
     print('input is new and different')