Python Forum
How to check an array exist in a file using Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check an array exist in a file using Python
#13
I tried this one and I got it. But I can not figure out to write the result to a file. Any idea?
FBlist_set = set(FBlist)
Array_set = set (Array)

if Array_set & FBlist_set:
	print ("found")
 	result.write("found") #??????
else:
	print ("Not Found")
Reply


Messages In This Thread
RE: How to check an array exist in a file using Python - by fitrisibarani - Feb-26-2019, 07:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Newbie here. Create an array from file data? Rayj00 2 1,261 Jan-13-2023, 01:35 PM
Last Post: perfringo
  how to check if file path finish on .csv danlopek14q 4 10,973 Apr-04-2021, 09:50 AM
Last Post: danlopek14q

Forum Jump:

User Panel Messages

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