Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print only nth line
#2
Index the list:

x = re.findall('<td\s+class\="text\-center">([0-9.,]+)</td>',x)
print(x[2])
Reply


Messages In This Thread
Print only nth line - by AgileAVS - Feb-05-2020, 03:17 PM
RE: Print only nth line - by stullis - Feb-05-2020, 03:34 PM
RE: Print only nth line - by snippsat - Feb-05-2020, 03:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with spliting line in print akbarza 3 1,237 Jan-23-2024, 04:11 PM
Last Post: deanhystad
  Print the line before the corrent line tester_V 9 2,946 Nov-18-2022, 08:39 AM
Last Post: Gribouillis
  Print to a New Line when Appending File DaveG 0 1,664 Mar-30-2022, 04:14 AM
Last Post: DaveG
  If match not found print last line tester_V 2 3,576 Apr-26-2021, 05:18 AM
Last Post: tester_V
  print a line break in writelines() method leodavinci1990 1 9,948 Oct-12-2020, 06:36 AM
Last Post: DeaD_EyE
  Print characters in a single line rather than one at a time hhydration 1 2,514 Oct-10-2020, 10:00 PM
Last Post: bowlofred
  How to print string multiple times on new line ace19887 7 8,346 Sep-30-2020, 02:53 PM
Last Post: buran
  Pattern Require Last Line Print() why? Harshil 4 3,182 Aug-08-2020, 04:54 PM
Last Post: Harshil
  print only last matched line tester_V 24 9,658 Apr-30-2020, 05:16 AM
Last Post: deanhystad
  item from a line to list however when i print the line instead of words i get letters Sutsro 5 3,984 Apr-22-2020, 02:39 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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