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.
This is false.
What is cardinality?
Cardinality refers to the entity instances for which it is eligible to participate in a relationship instance. There are two types of cardinality, maximum and minimum.
What is maximum cardinality?
- The maximum cardinality of a relationship is the maximum number of instances of entity B that may be associated with each instance of entity A.
- Maximum cardinality: maximum number of entity instances that can participate in a relationship.
- One-to-One [1:1]
- One-to-Many [1:N]
- Many-to-Many [N:M]
To know more about maximum cardinality , refer:
brainly.com/question/18090451
#SPJ4