Answer:
import re
with open("../../Downloads/Tweets.txt","r", encoding="utf-8") as tweets:
myfile = tweets.readlines()
for item in myfile:
item = item.rstrip()
mylist = re.findall("^RT (.*) ", item)
if len(mylist) !=0:
for line in mylist:
if line.count("#") >=1:
ln = line.split("#")
dm = ln[1]
print(f"#{dm}")
Explanation:
The python source code filters the document file "Tweets" to return all tweets with a hashtag flag, discarding the rest.
Answer: An output device
Explanation:
Headphones are the hardware output device and it use in the purpose of listening audio and music and watching movies without any interruption and distributing others.
It can used in the computer system by plugging it in or connecting it with the speakers.
We can connect headphones to the computer system which basically result in output as sound in the headphones and then it is not needed to use USB headphones.