Computer Science, asked by akashkumar9717, 11 months ago

What is the output of the following code? def f(): pass print type(f())

Answers

Answered by khushisingh4899
4

print(type([1,2]))

<class 'tuple'>

<class 'int'>

<class 'set'>

<class 'complex'>

<class 'list'>

mark as brainliest

Answered by ssonu43568
1

Answer is "<type 'Nonetype'>"

Explanation:

  • Nonetype is the keyword for null coding in python which represent that nothing bring anything back
  • It is additionally a typical default return an incentive for capacities that scan for something and could possibly discover it; for instance, it's returned by research when the regex doesn't coordinate, or dict.get when the key has no section in the dict
  • we can start the Nonetype object using keyword None as follow: obj=Name
  • Check the type of object variable:
  • 1 Obj=Name, 2 type(obj)
  • Output: <type 'Nonetype'>
  • Hence, the right answer is "<type 'Nonetype'>"
Similar questions
Math, 1 year ago