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
The combination of Xs,Os, and blanks will approximately be somewhere between 2048 and about 4048. The combination’s total is 19, 683, but since the Xs and Os number will always be equal or off by 1, many cases are eliminated. Thus, the board is represented in 11 or 12 bits.
Question 1: To tell what will happen when an if-statement is false.
Question 2: The = should be ==
elseif should be elif
The else should have a :
Question 3: All algorithms can only do number calculations.
Question 4: and
Question 5: To make a follow-up True/ False decision
Question 6: if (text1 > 15):
Question 7: if (text1 == 78):
Question 8: if (num1 != num2):
Question 9: >=
Question 10: 4
Question 11: 3
Question 18: a < b and a != b
Question 19: !=
Sorry about 12 - 17 and 20 i can't seem to find those questions guessing you wanted edhesive. I dont have an account on it.
Answer:
1. siblings + 1
2. numberOfPizzas * pizzaCost
3. alienGreeting + alienGreeting2
4. color1 === color2
5. value1 - value2
6. console.log(gradeAverage === gradeAverage2)
7. numberToString + numberToString2
8. numberOfStudents / numberOfClassrooms
9. console.log(carSpeed === truckSpeed)
Cell phones work(s) by using radio waves to communicate with radio antennas placed within adjacent geographic areas.