1 개요
- Python sum()
- 파이썬 sum()
Python
Copy
numbers = [1, 2, 3, 4]
print( sum(numbers) )
Loading
Python
Copy
numbers = (1, 2, 3, 4, 5)
print( sum(numbers) )
Loading
Python
Copy
numbers = [1, 2, 3, 4]
print( sum(numbers, 10) )
Loading
Python
Copy
numbers = (1, 2, 3, 4, 5)
print( sum(numbers, 8) )
Loading
2 같이 보기
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.