how to do typecasting in python?
Answers
Answered by
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
0
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
World Languages,
3 months ago
Math,
3 months ago
Computer Science,
3 months ago
Math,
6 months ago
English,
6 months ago
Sociology,
11 months ago
Math,
11 months ago