There's 52 web results, and want to limit the total output to 10
And here is the output
How do i reduce the number of array outputs?
Thank you!
Python:
Combined = open("dictionaries/Combined.txt", 'r', encoding="utf-8")
Abused = open("dictionaries/Abused.txt", 'r', encoding="utf-8")
Example = open("dictionaries/examples.txt", 'w', encoding="utf-8")
Python:
for web_Test in Combined:
Combined_result = re.search(r"([\w-]+\.)*\w+[\w-]*", web_Test)
Text_Test = (Combined_result.group())
Example.write((Text_Test+'.web'+'.co.id'+"\n"))
#print(Text+'.bni'+'.co.id')
Python:
with open("dictionaries/examples.txt") as f:
websamples = [line.rstrip() for line in f]
Python:
print (websamples)
And here is the output
How do i reduce the number of array outputs?
Thank you!