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?

Answers were Sorted based on User's Feedback



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

Answer / nashiinformaticssolutions

While // denotes floor division (result is an integer), / denotes precise division (result is a floating point value). For instance:

5//2 = 2 5/2 = 2.5

Is This Answer Correct ?    0 Yes 0 No

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

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

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

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

More Python Interview Questions

What is the difference between pickling vs unpickling?

0 Answers  


Explain how python does compile-time and run-time code checking?

0 Answers  


What are the 4 data types in python?

0 Answers  


How can you access the latest five entries of a DataFrame?

2 Answers  


What is the best ide for python?

0 Answers  


What is the input function in python?

0 Answers  


What is python private heap space?

0 Answers  


What are magic methods in python?

0 Answers  


Explain split(), sub(), subn() methods of “re” module in python.

0 Answers  


What is a python module?

0 Answers  


Tell me how do you debug a program in python? Is it possible to step through python code?

0 Answers  


What does means by “call by reference” in python?

0 Answers  


Categories