Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sumofvaluesindex(dem):
- total=0
- for i in dem:
- dem.index(i)
- total += dem.index(i) + i
- print(total)
- sumofvaluesindex([3, 4, 5, 6])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement