Computer Science, asked by Anonymous, 6 months ago

how to do typecasting in python?​

Answers

Answered by Anonymous
1

Answer:

We use the predefined functions like int() , float() , str() , etc to perform explicit type conversion. This type of conversion is also called typecasting because the user casts (changes) the data type of the objects. Typecasting can be done by assigning the required data type function to the expression

Explanation:

pls mark me as brainilist And follow me guys

Answered by brainliestnp
0

Answer:

{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{\fbox{answer}}}}}}}}}}}}}}}}}}}}}}}}}}

Type Conversion in Python

•int(a,base) : This function converts any data type to integer. ...

•float() : This function is used to convert any data type to a floating point number. ...

•ord() : This function is used to convert a character to integer.

•hex() : This function is to convert integer to hexadecimal string.

Similar questions