TGViewer
Python Developer Python Developer @python_tg · 20.9K subscribers
Post #3370 3.64K
❔ Вопрос с собеседования

Почему isinstance(True, int) возвращает True?

Ответ: В Python bool является подклассом int. True и False — это экземпляры int со значениями 1 и 0 соответственно.

tags: #собеседование

➡️ Python Developer | Чат
  • ❤ 6
  • 🔥 5
  • 👍 2
More from @python_tg
  1. Sep 29, 2026▪️ ML Engineer Roadmap 2026: путь от Python до ML-систем В репозитории собрали подробную д…
  2. Sep 28, 2026Post #4039
  3. Sep 28, 2026Post #4038
  4. Sep 28, 2026📱 Собираем охранника для комнаты на Python и YOLO В статье создают Telegram-бота, который…
  5. Sep 27, 2026▪️ Большая база материалов для изучения Python с нуля Нашли репозиторий, где собраны roadm…
  6. Sep 26, 2026Post #4035
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →