Change dictionary values from int to string
<p>This is what my dictionary looks like.</p>

<pre><code>phoneBook = {"Skywalker": 55511243, "Solo": 55568711, "Vader": 55590858}
</code></pre>

<p>I need to change each phonenumber into a string and add <code>"+1-"</code> in front of it. But, I'm not sure how to do it.</p>

<p>Use a dictionary comprehension</p>

<pre><code>{k:'+1-'+str(phoneBook[k]) for k in phoneBook}
</code></pre>

python string python-3.x dictionary int