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

In Python what are iterators?

914


Explain whats flask?

875


What are the list methods in python?

815


Does python have multiple inheritance?

758


How can you share variables across modules?

866


Difference between __str__ and __repr__?

793


Do you know what are python decorators?

930


How do you convert a number into a string?

774


How to access sessions in flask?

820


What is list comprehension? Give an example.

1041


Explain me what is pass in python?

873


What is n in python?

775


How do you define a function in python 3?

843


Why is not__getattr__invoked when attr==’__str__’?

934


What is hello world in python?

846