Answer:
def analyze_text(sentence):
count = 0
e_count = 0
for s in sentence:
s = s.lower()
if s.isalpha():
count += 1
if s == "e":
e_count += 1
return "The text contains " + str(count) + " alphabetic characters, of which " + str(e_count) + " (" + str(e_count*100/count) + "%) are ‘e’."
Explanation:
Create a function called analyze_text takes a string, sentence
Initialize the count and e_count variables as 0
Create a for loop that iterates through the sentence
Inside the loop, convert all letters to lowercase using lower() function. Check each character. If a character is a letter, increment the count by 1. If a character is "e", increment the e_count by 1.
Return the count and e_count in required format
I think false not sure but let other people help u answer and u can decide
b.Enrique will probably have to pay a high tuition if he doesn’t earn a scholarship or grant.
Answer:
Answered below
Explanation:
Some variable naming conventions include;
1) Variable should begin with either a letter or an underscore.
2) Variables having multiple words should have the first letter of every word after the first word, capitalized. This is the camelCase style.
3) variables should not be named after any of the inbuilt keywords except on special operations to override the original function of such keyword.
4) variable names are case-sensitive.
The importance of following these conventions is to maintain readability and consistency of code. Failure to follow these conventions may lead to chaotic codes, bugs and inefficient performance.
Answer:
Windows utility program.
Explanation:
The operating system is a software used to manage the activities of various parts of the computer system. It acts as a link between the hardware, application software and the user. An example of OS is the Windows OS.
It has the kernel program that directly connects the hardware to the operating system. It provides utility programs to analyse, optimise, control and maintain devices running in the system.
Window utility program is an example of utilities in OS, used to analyse, control, optimise and maintain device and software activities for good system performance.
An example of the windows utility program is the disk defragmenter used to eliminate fragments and rearrange files and unused disk space.