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

Define pyramid in python?

603


Can I learn python in a month?

584


what is the statement that can be used in python if the program requires no action but requires a statement syntactically?

610


What is the speciality of python?

516


How do you show hello world in python?

635






What does __ file __ mean?

582


Explain other string literals?

616


What are the differences between del keyword and clear() function?

613


Explain raise keyword?

630


What are accessors, mutators, and @property?

614


Please explain what are the rules for local and global variables in python?

578


How do I run python on linux?

557


How long do goats sleep?

616


What is python metaclass?

680


What is the script in python?

576