YUNOVA · Python programming · Module 2: Variables & Data Types
Python me type conversion - int(), float(), str()
Python me type conversion - int(), float(), str()
Key points
- int(), float() और str() से एक type की value दूसरे type में बदलती है।
- एक number वाला text int() से असली number बन जाता है।
- जो text number नहीं है उसे int() करने पर error आता है।