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?

Java and Spring tutorials since 2008. Every example is a complete, runnable file, compiled and run on a real machine before it goes out.

About This Site

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

© 2026 mkyong.com — Powered by WordPress

RSS