Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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


Please Help Members By Posting Answers For Below Questions

What does .join mean in python?

943


What is tuple in python?

925


Why do you need to make your code more readable?

930


What is a docstring comment?

864


What are different methods to copy an object in python?

892


How to get class name of an instance in Python?

913


What is py4j?

766


Write a program to draw a board ex: 3by3 or 4by4 etc?

786


Explain about cookies in python?

832


How to convert a string into datetime?

1004


What is static in python?

887


Which method will be used to delete a file ?

811


How to remove duplicates from a list in python ?

864


How to convert a list into a set?

898


What advantages do numpy arrays offer over (nested) python lists?

1052