Python Forum
Help with university work - reading and writing files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with university work - reading and writing files
#3
The shorter way would be to use regex.
Delete everything that is not a number,
hence you are left with a number, just 1 line.
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
RE: Help with university work - reading and writing files - by DPaul - Nov-01-2022, 06:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] University Assignment Help needed Nomathemba 4 4,136 Apr-20-2024, 12:24 PM
Last Post: jas31
Lightbulb Python University Laboratory - Help camibaldessini 3 1,482 Nov-03-2023, 01:28 PM
Last Post: Garrypyton
  reading text file and writing to an output file precedded by line numbers kannan 7 10,707 Dec-11-2018, 02:19 PM
Last Post: ichabod801
  University Assignment Help needed Diovanno 3 4,544 Apr-10-2018, 02:46 PM
Last Post: Diovanno

Forum Jump:

User Panel Messages

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