Computer Science, asked by sameer8476, 11 months ago

17. Identify the error in the following code.
import pickle
data = ['one', 2, 3, 4, 5]]
with open('data.dat', 'wb':
pickle.dump(data)​

Answers

Answered by manukumsr54
2

Answer:

`one` is odd one out

Explanation:

in (one ,2,3,4,5) it is showing that one is a spell and 2,3,4,5 are numbers so ,,,

therefore (one ) is odd one out

Answered by Theesthan247
0

Answer:

the line 4 is not complete

Explanation:

it should be

with open('data.dat', 'wb')as <file_handle> :

Similar questions