I have to display 2 different images for this riddle in python code. But images are not getting displayed in python jupyter notebook. It keeps on processing and no error is displayed. Can someone guide me, how to display 2 different images in if else condition while taking input from user.
Code:
print("What invention lets you look right through a wall")
ans = ["window", 'Window','WINDOW']
respond = input()
from IPython.display import Image
if respond in ans:
Image(url= "window.jpg", width=200, height=200)
else:
Image(url= "cat_meme.jpg", width=200, height=200)