What is the difference between = and == in python?

Answer Posted / nashiinformaticssolutions

- `/` is the true division operator that always returns a float result, even if both operands are integers.
```python
result = 7 / 3 # Returns 2.3333...
```
- `//` is the floor division operator, which returns the largest integer less than or equal to the result.
```python
result = 7 // 3 # Returns 2

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is set nesting implemented in python?

569


How do you use super in python?

571


What does means by split do in python?

573


How to use of return keywords in python?

580


How is python used in the real world?

565






Is nodejs faster than python?

543


Tell me is there a switch or case statement in python?

600


How do you alphabetize a list in python?

551


Difference between __str__ and __repr__ in python?

574


How do I define a variable?

516


Are tuples mutable?

515


What is repl in python?

540


Explain about classes in strings?

592


Explain me what is the common way for the flask script to work?

548


Explain how to delete a file in Python?

596