Python Task/Exercise Week 3 No 1

Python Task/Exercise Week 3 No 1



In this task/exercise, we have to use two dictionaries

to produce a new dictionary.



Hence, using vocab and idf dictionaries below,



vocab = {"band" : 0, "and" : 1, "ask" : 2, "cat" : 3}

idf = {"band" : 1.7, "and" : 0.98, "ask" : 0.99, "cat" : 1.2}



produce a new dictionary called new_vocab, as below



new_vocab = {"and" : 0, "ask" : 1, "cat" : 2, "band" : 3}



_____________________________________________________

Please submit your answer on the BLOG or YouTube Channel

as a comment. There is a prize to be won.



CONGRATS TO MR. ELVIS that won in the last task/exercise.



Terms and Conditions for winning

1] Drop your answer as a comment.

2] Like this post and any other four on the blog

3] Like three videos on our YouTube Channel

4] Subscribe to our BLOG and YouTube Channel

5] Share our blog and channel to three social media sites with

the hashtag hamplustech (#hamplustech)



Thanks.



Comments

Popular posts from this blog

Nigerian Air Force DSSC 2018 - Information

Facebook Job - Secrets and Tips (Applicants)