SubhanUllah Posted October 21, 2022 Report Posted October 21, 2022 str(the_float) Example… a = 5.61 print(type(a)) ###OUTPUT <class 'float'> b = str(a) print(b) ###OUTPUT 5.61 print(type(b)) ###OUTPUT <class 'str'> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.