1.

Given a function that does not return any value, What value is thrown by default when executed in shell.(a) int(b) bool(c) void(d) NoneI had been asked this question during an online exam.The query is from Core Data types in chapter Variable Names, Operators, Data Types & Numeric Types of Python

Answer»

The correct option is (d) None

The explanation is: PYTHON SHELL THROWS a NoneType object back.



Discussion

No Comment Found

Related InterviewSolutions