There is no question here but it might be paint
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.
Answer:
a. operands are evaluated left toright. 7
b. operands are evaluated right toleft. 12
Explanation:
a. operands are evaluated left toright. 7
b. operands are evaluated right toleft. 12
left to right
int fun (int *i) {
*i +=5; we add 5to x making x 8
return4; we return 4 tomain
}
void main ( ) {
int x = 3;
x = x + fun(&x); x starts at 3 in fun it ischanged to 8 but the 3 is already being used the 4 fromfun is added (3+4) to it making it 7
}
right toleft x starts at 3 in fun x gets changed to 8 and fun is returned as 4so we have 4 + 8 = 12
Paraphrasing
left to right it's is 3 + 4 =7 original value of x is used
right to left it is 4 + 8 =12 x is used as it was changed by fun, since fun was alreadyexecuted
Answer:
The answer is "auditors"
Explanation:
Description to this question can be described as follows:
- Auditors are professionals who analyze business and corporate accounts to determine, that the financial reports are accurate and lawful. It will serve as a consultant to suggest possible measures for risk avoidance or cost reduction.
- Data security is the mechanism to avoid theft, loss of sensitive information, and information quality is critical and it is not able to know or stay in contact with your clients without high-quality data, that's why auditors are the correct answer and other choices can't be defined in the following senior.