I want to copy and paste some link (I tell it, how much), into this console program, and this will open it for me. I created a for loop so it will ask for a link (once if I typed 1...). But it is trying to execute and open the link every time when I paste a link. A want it at the end. How can I do it? (I was trying some things, but it isn't working).
import webbrowser as wb
number = int(input(':'))
for x in (numbers+1 for numbers in range(number)):
globals()["link"+str(x)] = input("Link: ")
wb.get('edge').open(link1,link2....)
This will store the links in "link1", "link2". But I don't know how to tell to try link1 in the command, link2.... And when it can't be execute than stop. (I set up the wb.register thing, it's working).