Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. type

Tag: type

python June 14, 2018 1 min read by mkyong 0 comments

Python – How to check the variable’s type?

In Python, we can use type() to check the variable’s type. num = "3.141592653589793238" print(type(num)) pi = float(num) print(type(pi)) Output <class ‘str’> <class ‘float’> References Python docs – type()

Read more Python – How to check the variable’s type?

Recent Posts

  • Java Compact Source File: No Class, No Static Main
  • Java Scoped Values Example
  • Spring Boot RAG Example with Spring AI
  • Java AtomicInteger Example
  • Java Virtual Threads Example
  • Spring Boot Supabase CRUD Example
  • Spring Boot REST Docs Example
  • How to Install Java on Windows (Step-by-Step Guide)

© 2008–2026 mkyong.com

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use