Answer:
myString = input("Please enter a string")
wordList = myString.split()
numofWords = len(wordList)
print('The number of words in {} is {}'.format(myString, numofWords))
Explanation:
Since the suggestion to use a boolean variable flag is not compulsory, I have implemented it in another way.
Using python programming language, the input function is used to prompt the user to enter a string which is saved in a variable myString.
The string entered is converted into a list of all the words by spliting at the blank spaces and saved in the variable wordList
Next we count the number of words by obtaining the len of the list and output to the user
Primary colors cannot be made by mixing
Answer:
1. Tabs: allows you to drag the window to a new location
Explanation: Tab is the key that is used to switch between different windows or websites that are opened at a time. This can be done by pressing Ctrl+Tab
2. Status Bar: displays whether the Web page is secure or not
Explanation: Status bar is used to show the status or information related to that page. Like Information related safety precaution.
3. Title Bar: allows you to quickly move between different Web sites
Explanation: Title bar consist of the name of different websites that are open at particular time. This shows at the top of the browser. We can quickly move on different websites using title of website.
4. Bookmarks: save Web addresses so you can return to them quickly
Explanation: Bookmarks are the pages that we save in bookmark menu, to re-open the page whenever its needed.