The python code which can be used to read dates from input, one date per line and each date's format must be as follows: March 1, 1990, is:
<h3>Python code</h3>
import datetime
inputs = []
result = []
#read the inputs
date = input()
inputs.append(date)
while not date == "-1":
date = input()
inputs.append(date)
#check if the input is in the correct format and convert it.
for date_text in inputs:
try:
date_text = datetime.datetime.strptime(date_text,"%d %B, %Y")
result.append(date_text.strftime("%d/%m/%Y"))
except ValueError:
pass
print(*result, sep = "\n")
The above code would parse the string and extract the date. The split() method was used to break the input into tokens.
Read more about python programming here:
brainly.com/question/27666303
#SPJ1
The answer is A you’re welcome
Answer:
Macro viruses usually infect Microsoft Office apps like Word and Excel.
Explanation:
B. true
RAM (Random Access Memory) is volatile because if power is lost, so is your memory.
Answer:
Endorsement
Explanation:
The term that refers to this is known as an Endorsement. This can be for any product or service and generally involves a celebrity or public figure that in one way or another relates to the product or service being advertised. One example of this would be famous soccer icon Christiano Ronaldo publicly supporting and appearing in Nike advertisements showing off their new soccer cleats.