A

Admin • 833K Points
Coach

Q. What is duck typing in Python?

  • (A) Typing only strings
  • (B) Type checking during runtime
  • (C) Object compatibility based on methods/behavior
  • (D) Type checking during compile-time
  • Correct Answer - Option(C)
  • Views: 29
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Duck typing means: 'If it walks like a duck and quacks like a duck, it's a duck.'

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.