Programming and Problem Solving through Python : Sequence data types in python

कोड की निम्नलिखित लाइन्स में से कौन सा एरर होगा ? , Which of the following lines of code will result in an error?

Which of the following lines of code will result in an error?




Solution
D. s={san}



Explanation
The line: s={san} will result in an error because ‘san’ is not defined. The line s={abs} does not result in an error because abs is a built-in function. The other sets shown do not result in an error because all the items are hashable.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad