Answer:
microsoft word
Explanation:
i got certified on it sooooooooooo...
The answer is help because it helps you<span />
It is located on Mini Tool Bar
Answer:
The program in Python is as follows:
print("Enter a character followed by a phrase",end='')
word = input(": ")
char = word[0]
print("Occurrence: "+str((word.count(char))-1))
Explanation:
The prints an instruction to the user on how to input to the system
print("Enter a character followed by a phrase",end='')
This prompts and gets the user for input
word = input(": ")
This extracts the character from the input string
char = word[0]
This counts and prints the number of occurrence of the extracted character
print("Occurrence: "+str((word.count(char))-1))
Answer:
- To get the items of a dictionary and print them as a string, use the items() method to unpack the keys and values in a for and print or write them into a file.
for key, value in mydict.items():
print(f"{key}, {value}")
- To convert string from user input into dictionary;
mystring = input().split(" ") #assuming the words are separated by a space.
from word in mystring:
mydict[word] = mydict.get(word, 0) + 1
This would use the words in the string as the keys of the dictionary and the count of each word as the respective values.
Explanation:
A dictionary is a data structure in python used to store data in key-value pairs. The items are enclosed in curly braces and can be accessed with the key in dot or bracket notation.