What is coercion?



What is coercion?..

Answer / Rajiv Singh Chaudhary

In Python, coercion refers to the automatic conversion of one data type to another when an operation requires a specific type that the operands do not have. For example, when adding a string and a number, Python automatically converts the string into a number.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Can python be used for automation?

1 Answers  


When would you use a break statement in a for loop?

1 Answers  


What is the sleeping time of giraffe?

1 Answers  


What is the comment tag in Python ?

1 Answers   Microsoft,


What is the use of numpy package?

1 Answers  


How would you check if MySQLdb is installed?

1 Answers  


explain the filter() function?

1 Answers  


Tell me what is the difference between list and tuple?

1 Answers  


Is python 0 indexed?

1 Answers  


What is shebang python?

1 Answers  


How do you find the number of references pointing to a particular object?

1 Answers  


What is Python's Purpose?

2 Answers  


Categories