Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8827045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:17:18+00:00 2026-06-14T07:17:18+00:00

I have a simple question: I have this code: # open an HTML file

  • 0

I have a simple question: I have this code:

# open an HTML file on my own (Windows) computer
url = "$user data here"
webbrowser.open(url,new=new)

I need to have it so that when it is run the user can enter lets say 3 different URL’s and have that code created two more times filling in the variable spot with one of the three variables in each part.

I would assume I need a loop but how can I define the variables dynamicly that way if they enter 3 or 5 urls it would generate the code to do that?

Thanks in advance,
Justin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:17:19+00:00Added an answer on June 14, 2026 at 7:17 am

    do you mean you want to grab urls like:

    urls = raw_input("Enter yer urls! ")
    

    ?

    if so, you could just split the result and open windows for each url with something like:

    for url in urls.split():
        webbrowser.open(url,new=new)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple question, I have a window that was opened with this code window.open(URL, windowName,
i have this simple question please. I have this part of code which sets
i have a simple question: i have this var: $v = 24000,1500,1500,1500,1500,1500,; i would
hopefully a pretty simple question this time. I have a Select method in a
this time i have a simple question: I have one table, related with himself
I have a simple question. I have this bitmap Is there a way with
i have a very simple question, actually this is not the question, this is
Okay this question is very simple: I have a facebook page, and a website.
This is hopefully a simple question: I have an OpenGL texture and would like
Okay this may be a simple question but I have yet to come with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.