<span>Answer: Metasearch engines</span>
Liking a company on Facebook
<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"
Answer:
def length( mystring):
count = 0
for i in mystring:
count += 1
return count
def reversed( mystring):
strlist = []
for i in range(length(mystring)):
strlist.append(mystring[(length(mystring) - 1) - i])
txt = "".join(strlist)
return txt
string = 'Yolanda'
print(reversed(string))
Explanation:
The python module defines two functions 'reversed' and 'length'. The length function counts the number of characters in a string variable while the reversed function reverses the string variable value.
Answer:
def str_analysis(s):
if s.isdigit():
s = int(s)
if s > 99:
message = str(s) + " is a pretty big number"
else:
message = str(s) + " is a smaller number than expected"
elif s.isalpha():
message = s + " is all alphabetical characters!"
else:
message = "There are multiple character types"
return message;
s = input("enter word or integer: ")
while s != "":
print(str_analysis(s))
s = input("enter word or integer: ")
Explanation:
- Check if the string is digit, alphabetical, or mixed inside the function
- Ask the user for the input
- Call and print the result of the <em>str_analysis</em> function inside the while loop
- Keep asking for the input until the given string is empty