Answer:
import csv
with open('employee_birthday.txt') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = 0
for row in csv_reader:
if line_count == 0:
print(f'Column names are {", ".join(row)}')
line_count += 1
else:
print(f'\t{row[0]} works in the {row[1]} department, and was born in {row[2]}.')
line_count += 1
print(f'Processed {line_count} lines.')
Explanation:
Heres an example of how to read csvs
Answer:
myShoe.type = 'sneaker'
Explanation:
type is a field of the class shoe. The myShoe object which is an instance of the class shoe has the field type also.
To assign a value to type filed of the object myShoe, reference the object then the field as such;
myShoe.type = "sneaker"
<h2>"<lastmod>" is the right choice for the given scenario</h2>
Explanation:
<update> This tag does not belong to <URL> tag of the site map. Hence this option goes invalid.
<lastmod> This gives details of the date and time when the website content was changed. It will be in "W3C Date time format". This may omit time at times. This is the write answer.
<loc> This contains the URL of the web page.
<changefreq>: How frequently the "web page is likely to get modified". The values which it accepts are: "monthly, always
, daily
, weekly
,hourly, yearly
, never"