main.py 1 Fill in the blank in the function below with a single line of code, such that if pairs is a dictionary with strings for the keys and the values, it converts all of the values strings to...


How would I fill in the blank to answer this question?


main.py<br>1 Fill in the blank in the function below with a single<br>line of code, such that if pairs is a dictionary with<br>strings for the keys and the values, it converts all of<br>the values strings to uppercase.<br>2<br>def caps_values (pairs):<br>for var in pairs:<br>3<br>4<br>6.<br>return pairs<br>8.<br>9.<br>For example,<br>10<br>>>> caps_values ({'one': 'two', 'three':'four',<br>'five':'six'})<br>11<br>I<br>12<br>{'one': 'TWO', 'three': 'FOUR', 'five': 'SIX'}<br>13<br>|<br>

Extracted text: main.py 1 Fill in the blank in the function below with a single line of code, such that if pairs is a dictionary with strings for the keys and the values, it converts all of the values strings to uppercase. 2 def caps_values (pairs): for var in pairs: 3 4 6. return pairs 8. 9. For example, 10 >>> caps_values ({'one': 'two', 'three':'four', 'five':'six'}) 11 I 12 {'one': 'TWO', 'three': 'FOUR', 'five': 'SIX'} 13 |

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here