πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Object compatibility based on methods/behavior

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
49
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate