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
What does .join mean in python?
What is tuple in python?
Why do you need to make your code more readable?
What is a docstring comment?
What are different methods to copy an object in python?
How to get class name of an instance in Python?
What is py4j?
Write a program to draw a board ex: 3by3 or 4by4 etc?
Explain about cookies in python?
How to convert a string into datetime?
What is static in python?
Which method will be used to delete a file ?
How to remove duplicates from a list in python ?
How to convert a list into a set?
What advantages do numpy arrays offer over (nested) python lists?