Advertisement
M4tthew27

Untitled

Jun 10th, 2024 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. [1] coffee = 'латте:20 раф:30 капучино:50'
  2. [2] summa == 0
  3. [3] for cof in coffee.split():
  4. [4]     summa += int(cof.split()[0])
  5. [5] print(summa)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement