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 do I convert time to seconds in python?
Is fortran faster than python?
What is split used for?
What is enumerate() function in python?
What is setup script?
Why cannot lambda forms in Python contain statements?
How to get all keys from dictionary ?
Can python be used for web client and web server side programming? And which one is best suited to python?
What is python private heap space?
What is __ new __ in python?
How to make any variable private in python ?
How do you perform pattern matching in python? Explain?
Does python sleep use cpu?
What happens in the background when you run a python file?
What does len () do in python?