Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN PYTHON 3.X PLEASE var_a = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'] var_b = (1, 2, 3, 4, 5, 6, 7,
IN PYTHON 3.X PLEASE
var_a = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'] var_b = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
dictionary = dict(zip(var_a,var_b))
THE QUESTION: Create a dictionary named other_dictionary. It should have the key-value pairs as dictionary, unless the original value is odd. If so, the value in other_dictionary should be the squared difference of the original value and 10.
Note: to loop through key-value pairs in a dictionary, check out the '.items' method
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started