Why is the code not exiting the while loop even though the condition to exit is valid? I can't see any problem with that
from pytube import YouTube
url = input("Enter the link: ")
yt = YouTube(url)
while True:
option= input("Select option: Audio 128kbps = 1, Audio 50kbps = 2, Audio 70kbps = 3, Audio 160kbps = 4: ")
#itag="140" itag="249" itag="250" itag="251"
if option ==1 or option ==2 or option ==3 or option ==4:
break
print(option)
if option==1:
stream= yt.streams.get_by_itag(140)
elif option==2:
stream= yt.streams.get_by_itag(249)
elif option==3:
stream= yt.streams.get_by_itag(250)
elif option==4:
stream= yt.streams.get_by_itag(251)
stream.download()