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