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.
If you include all zeroes, then it should be 1,000,000,000. Otherwise it’s 999,999,999.
Think of how between 0-9 theres 10 numbers, and use that logic towards 000000000-999999999
Answer:
Step 1 - Open the View tab.
Step 2 - Open the Page Setup dialog box
Step 3 - Open the header and footer tool.
Step 4 - Click OK.
Explanation:
In order to access to the header and footer tools
Step 1 - Open the View tab.
Step 2 - Open the Page Setup dialog box
Step 3 - Open the header and footer tool.
Step 4 - Click OK.
Answer:
highest of five numbers in the file
Explanation:
- This code reads the file "some-file.txt" and saves the result in variable "somefile"
- The runs a for loop for a count of 5.
- In each loop it compares the current value of the file with the value of the variable result and if the result is true it updates the value of the variable result.
- At the end of this code the variable result will contain the highest value in the file "some-file.txt" and print it.
Answer:
Yes
Explanation:
mark as best answer please