Advertisement
here2share

# b_dict2text_format.py

Feb 15th, 2024
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. # b_dict2text_format.py
  2.  
  3. zzz = {
  4.     "aaa": "red",
  5.     "bbb": "yellow",
  6.     "ccc": "blue"
  7. }
  8.  
  9. z = '{aaa} > {bbb} > {ccc} > {aaa}'.format_map(zzz)
  10. print(z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement