• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 2

How do I add everything in a list together in python ?

Say I had a list called x that contained(1,2,3) Is there a command that would return 6 (the sum of all those numbers)

pythonreturncodelisthelpoperatorsumadition
30th Apr 2020, 9:06 PM
Code_laser (not Super Avtive)
Code_laser (not Super Avtive) - avatar
1 Answer

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Can someone teach me a beginner code for beginner like me ? (I would be very happy if you could help)
1 Votes
job
2 Votes
Add border between list number and text
0 Votes
How to insert images into the web
1 Votes
Can i learn brojecting?!
0 Votes
Are they planning to teach lua in the future?
0 Votes
Can you please introduce mql5 language here.
0 Votes
Question to Sololearn users
0 Votes
Stuck on a module
0 Votes
ĐšŃ‚ĐŸ Ń‚ĐŸ Đ·ĐœĐ°Đ”Ń‚ руссĐșĐžĐč?
0 Votes