We can define a word as a group of characters without a space between them. To find the words of the input string , w can use split(delimiter) which returns a list of strings which had the defined delimiter between them in the input string.
def countWords(string):
words = string.split(" ")
count = len(words)
return count
Here we set the delimiter as the space character, and returned the length of the words list. I split each step into its own line for readability, however the function could be one line:
return len(string.split())
Here, no delimiter is specified. If one isn't given, it will default to split at any whitespace, including space.
Answer:
3. ISDN
Explanation:
ISDN ( Integrated Services Digital Network ) -
It is the used for the simultaneous digital transmission of network service , data , video and voice , instead of the old circuits of the public switched telephone network ( PSTN ) , is referred to as ISDN .
The characteristic feature of ISDN is that it integrates the data and speech on the same lines , which is not possible in PSTN .
Hence, from the given information of the question,
The correct option is ISDN .
Packet loss is typically resolved by time-outs and retries. For applications where a duplicate operation doesn't matter this is acceptable.
Whatwhatwhatwhat???????????
Answer:
Option(a) is the correct answer to the given fill in the blank of #2
Explanation:
The values[indexOfMin] returns the minimum element in the particular array As in the given question we have to implement the selection sorting .In the selection sorting we have choose the element and compare them others minimum index that's why we have choose the values[indexOfMin] function.
- The index of min is not the correct function So we have not used in the given fill in the blanks that's why option(b) is incorrect .
- The values[startIndex] represent the starting index only that is not suitable for the given question that's why it is incorrect option.