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 / 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

What is the key difference between java and python?

979


What is the interactive mode?

841


Is set sorted in python?

951


What is the purpose of uuid?

810


How do you delay time in python?

954


What is the function of a negative index?

983


What are the basic elements of python?

1166


What are class methods in python?

880


Which is faster python or c?

891


How much bytes do integer and decimal data types hold in python?

849


What is namespace in Python?

1396


How can I force division to be floating point in python?

840


What is the purpose of pythonpath environment variable?

977


Is google written in python?

827


How do you define a function in python 3?

917