Mar-02-2019, 05:27 PM
Hello guys , I was just trying to write some codes to run Dictionary exercises then I found myself stuck in trouble writing some parts of code .
I'm very thankful If you can help me doing this . Thanls
# Add two dictionary and assign it to dict3 Display the dict3 dictFirst = {'maths': '24' , 'science': '58' , 'history':'76'} dictSecond = {'sports': '16' , 'music': '83'} dictResult = {**dictFirst , **dictSecond} print(dictResult) # Clear the dictionary dict2 Display the dict2 dictSecond.clear() print(dictSecond) # Delete the dictionary dict1 ''' Get input from the user and print the score in that subject if not available print proper message. (user input can be of any case.) '''In line 11 up to 18 , I can't get any heads or tails around what am I supposed to do with it .
I'm very thankful If you can help me doing this . Thanls