Answer to Question #125376 in Python for Desimio Papatakorn

Question #125376
write a function savenum(a:List[str])->Dict{str,int):
There will be some signs after string(++ means +1)( -- means -1)( -> means transfer to).
All values of the string at first = 0, we have to calculate the value of each string till the end, and return in Dictionary {name of string,value at the end}
For example : a=['Kim++', 'Jane--' , 'Mint--', 'Jane->Mint'] return {'Kim': 1, 'Mint: -2}
Explain example: Kim=1 Jane= -1 Mint= -1, and then -1 from Jane transfer to Mint( -1+(-1)= -2) Jane =0 so it doesn't return in Dict
1
Expert's answer
2020-07-04T12:50:39-0400
Dear Desimio Papatakorn, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS