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
Look up binary code dictionary it will help you learn codes in letter of binary
The answer you are looking for would be A. Hardware can be an external tool, where as software is an internal tool. Hope this helped!
Answer:
50%
Explanation:
The markup is the difference between the selling price and the cost price. If the mark up is greater than zero, it means there is a profit, if the markup is less than 0, it means there is a loss and if the markup is equal to 0, it means there is breakeven.
Percentage markup = (markup/cost price) * 100%
Selling price - cost price = markup
15 - cost price = 5
cost price = 10
Percentage markup = (markup/cost price) * 100% = (5/10) * 100% = 50%