Answer Posted / glibwaresoftsolutions
- `/` 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
How would you display a file’s contents in reversed order?
Is python a shell?
What is inside __ init __ py?
What is map function in python?
What are advantages of a tuple over a list?
What is a list in python?
What is a dictionary in python?
What is set when we have to use?
Why is button parameter “command” executed when declared?
When would you use a list vs. A tuple vs. A set in python?
What are the two main types of functions?
What are the two main data types in python?
What are loops in python?
How do I reverse the range of a python order?
What is class variable in python?