Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comapring two files
#8
If the dates are formatted the same way in both files it's quite easy using dictionaries.

Make from a second file a dictionary with the dates as a key and the text as a value. Then you can get the dates from the first file and use each of it as a key to the dictionary and print the item. If there is no such a key, no match.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
Comapring two files - by usman88 - Oct-02-2019, 08:11 PM
RE: Comapring two files - by micseydel - Oct-02-2019, 09:39 PM
RE: Comapring two files - by usman88 - Oct-03-2019, 06:38 AM
RE: Comapring two files - by burningkrome - Oct-03-2019, 11:41 AM
RE: Comapring two files - by usman88 - Oct-03-2019, 01:58 PM
RE: Comapring two files - by burningkrome - Oct-03-2019, 04:29 PM
RE: Comapring two files - by usman88 - Oct-07-2019, 09:46 AM
RE: Comapring two files - by wavic - Oct-07-2019, 10:20 AM

Forum Jump:

User Panel Messages

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