Given dictionary D, rewrite this code using exceptions:
if x in D:
D[x] += 1
else: D[x] = 1
Write a function that takes a string of words and integers as an argument and returns two lists: one a list of the words, the other a list of the integers. Use exceptions to distribute words and integers to their respective lists.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here