Use a one-line for loop to iterate through and perform an operation on each element in a list really quickly.
phone_numbers = {"John Smith": "+37682929928", "Marry Simpsons": "+423998200919"}
new_phonenu = [num.replace('+','00') for num in phone_numbers.values()]
print(*new_phonenu)
Output:
0037682929928 00423998200919
Edit:
If you want to include the keys, use
phone_numbers = {"John Smith": "+37682929928", "Marry Simpsons": "+423998200919"}
new_phonenu = {k:num.replace('+','00') for k,num in phone_numbers.items()}
print(new_phonenu)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…