Formal education followed by lifelong learning i belive<span>
</span>
Answer:
userInput = str(input("Enter your sentence here.\n")).upper()
def getPigLatin(userInput):
splitInput = userInput.split(" ")
newList = []
for word in splitInput:
firstLetter = word[0]
if len(word) == 1:
word += 'AY'
newList.append(word)
else:
word = word.strip(word[0])
word += firstLetter
word += 'AY'
newList.append(word)
print(*newList, sep= " ")
getPigLatin(userInput)
Explanation:
This solution is done in Python
First the user is prompt to enter a statement, the statement converted to string and also capitalize using str and upper() built-in function. The user input is assigned to userInput variable.
The getPigLatin function is defined and it accept a string as parameter. Inside the getPigLatin function, the userInput is splitted and assigned to splitInput variable.
An empty list is also initialized and assigned to newList. Next, we loop through the splitInput. During the loop; we first check if the length of an element is one, then we just add 'AY' to the element and add the element to the newList. Else, if the element length is more than one; we strip the first letter from the word and also re-assign it to word, then the stripped first letter is added to the end of the word. Next, 'AY' is added to the word and the element is add to the newList.
The last line of the getPigLatin function display the entire element of the list using a space seperator.
The last line of the entire solution call the function passing in the userInput as argument.
Answer:
We first need to find out the number of variables, and if it is 3 or less, we can use excel for visualization or else we need to make use of the Microsoft Power BI or Tableau. And here, we have one variable as subscribers in various age groups, and the second variable is the number of hours spent in watching videos. And hence, we have only two variables. And thus, we can make use of the bar chart for visualization, and that is quite enough for visualizing this case. However, remember visualization is done for analyzing, and analyzing is made easy through visualization.
Explanation:
Please check the answer.
Answer:
The phrase "Open Source" means that a program's source code is freely available and may be modified and redistributed.
Explanation:
Hope this helped :)