Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List Iteration Help
#1
I've got a list [my_list] that contains a variable part of a web address I want to access. The web address outputs a result that I want to grab with .get and add into a new list.

Example:
www.list.com/my_list[0]

Output from site:
xyz

Ideally I'd like to create a new list with xyz in the same position as the variable part of the address in the first list.

I've got thousands of items in the list, so looking to get away from doing this manually, but my novice brain hasn't put together how.

Thanks in advance.
Reply


Messages In This Thread
List Iteration Help - by javeeva - Feb-07-2022, 07:52 PM
RE: List Iteration Help - by menator01 - Feb-07-2022, 08:19 PM
RE: List Iteration Help - by snippsat - Feb-07-2022, 11:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  list call problem in generator function using iteration and recursive calls postta 1 2,457 Oct-24-2020, 09:33 PM
Last Post: bowlofred
  user input for multi-dimentional list without a prior iteration using input() Parshaw 6 3,925 Sep-22-2020, 04:46 PM
Last Post: Parshaw
  issue with updating list every iteration of a loop ftrillaudp 2 4,013 Oct-29-2018, 03:23 AM
Last Post: ftrillaudp
  dictionary, list and iteration Annie 2 4,500 Jan-08-2017, 10:44 AM
Last Post: Annie

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020