Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list iterate .. help
#3
Hi Wavic,

tried as below, but still printing on same line.
print('{} {} {} {} {}'.format(ip[1],mac[1],numric_interface[1],svlan,cvlan, end=' '))
Output:
10.10.1.3 f01f.aff1.a65e 1/0/2.1820150 971 3025 10.10.1.3 f01f.aff1.a65e 1/0/2.1820150 971 3025 10.10.1.3 f01f.aff1.a65e 1/0/2.1820150 971 3025
Reply


Messages In This Thread
list iterate .. help - by anna - Mar-19-2018, 07:08 AM
RE: list iterate .. help - by wavic - Mar-19-2018, 09:15 AM
RE: list iterate .. help - by anna - Mar-19-2018, 10:02 AM
RE: list iterate .. help - by buran - Mar-19-2018, 10:30 AM
RE: list iterate .. help - by anna - Mar-19-2018, 10:45 AM
RE: list iterate .. help - by anna - Mar-19-2018, 11:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to iterate through a list... t4keheart 2 2,282 Feb-07-2020, 08:15 PM
Last Post: t4keheart
  list of lists iterate only sends the last value batchenr 1 2,498 Sep-24-2019, 07:04 AM
Last Post: Gribouillis
  Iterate through a list of dictionary and append a new value. erina 1 2,741 May-16-2019, 09:55 AM
Last Post: perfringo
  iterate through a list with comparison of expression Alexandro 6 4,589 Jan-31-2019, 05:16 PM
Last Post: Scorpio
  How to iterate through a list and search for a value fad3r 2 3,581 Jan-23-2018, 02:07 AM
Last Post: fad3r
  having dictionary and list to iterate in for loop Annie 5 6,599 Jan-05-2017, 01:05 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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