Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the result of this code? my _ list = [ ' 1 ' , ' 2 ' , ' 3 ' ] print

What is the result of this code?
my_list =['1','2','3']
print(sum(my_list))
1,2,3
6
123
An error because the sum function is only valid on a list when the list elements are numbers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

Students also viewed these Databases questions