You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduced casting using int(), float(), and str()
- Covered examples for each conversion type
- Included error handling and summary table
- Follows structure similar to W3Schools Python Casting guide
Co-Authored-By: Sanjay Viswanathan <[email protected]>
Copy file name to clipboardExpand all lines: docs/python/python-casting.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,7 @@ tags:
18
18
19
19
# Python Casting
20
20
21
-
In Python, **casting** is the process of converting a variable from one type to another.
22
-
Python has built-in functions for converting between data types.
21
+
In Python, **casting** is the process of converting a variable from one type to another. Python has built-in functions for converting between data types.
23
22
24
23
---
25
24
@@ -43,7 +42,7 @@ Converts a value to an integer. Works with floats and numeric strings.
0 commit comments