Read N integers into a list and print their sum.
Input:
- First line: N
- Second line: N space-separated integers
Output: Sum of all integers
You can use Python's built-in sum() function or a loop.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Sum elements
Read N integers into a list and print their sum.
Input:
Output: Sum of all integers
You can use Python's built-in sum() function or a loop.