I’m pretty sure it’s miner
“I’ll give you head I mean brainiest”
Answer:
Array: (a) All the messages a user has sent.
Variable: (b) The highest score a use has reached on the app. (c) A username and password to unlock the app.
Explanation:
An array generally has more than one value whereas a variable can only contain a single value at any particular point in time. In addition, a variable has a limit whereas an array does not have any maximum limit. Therefore, it can be concluded that option (a) will be stored as an array while options (b) and (c) will be stored as variables.
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.
1. a.
2. d
3. b
I hope this helps