Numbers in depth in python

preview_player
Показать описание
This video will talk about numbers in python. We will explore numbers in depth without any third party help. Third party packages are very popular in python such as numpy and pandas but they are not core python subjects so will will maybe discuss them in some future playlist, if there is enough demand on the channel.

Welcome to chai aur code, a coding/programming dedicated channel in Hindi language. Now you can learn best of programming concepts with industry standard practical guide in Hindi language.

All source code is available at my Github account:

Instagram pe yaha paaye jaate h:

Рекомендации по теме
Комментарии
Автор

repr() provides a string representation suitable for debugging,
str() provides a more user-friendly string representation,
and
print() is a function for outputting text or values to the console, typically using str() for the conversion.

Art_
Автор

I know many of student don't keep consistency and stops continuing but for me this works very well giving me a daily routine and easy to follow. Thanks Hitesh Sir ❤

dilkhush-raj
Автор

repr() : use for clear representation and debugging and mainly use by developer.
str() : represent as readable for human.
print() : internally it use str() to get object and print it.

NadaanParinde
Автор

16:16
repr() is used for debugging and generating unambiguous representations of objects.
str() is used to create human-readable string representations of objects.
print() is used to display text, and it internally calls str() to convert objects into printable strings before printing them

_saurav_jha
Автор

Sir please do not stop this series. Many people already know python so they are not appreciating it and wanted next js series. But I learning from you since chai aur JavaScript. I never see someone going in so depth and in such simple way. Thank you Sir!

MudasirAbbas
Автор

sir internal working samajh ke mja aagya ..ab to python me intrest aagya sir...interest to aana hi tha ..After all u r the KING OF PROGRAMMING ♥♥

Shivank_
Автор

16:24
repr() provides a detailed and unambiguous representation of an object, often used for debugging and development.
str() provides a human-readable representation of an object.
print() is a built-in function for displaying text or object representations on the console. It implicitly uses str() on its arguments.

harleeneyd
Автор

numbers in python done.
1. repr() : gives out a machine readable string, an unambiguous representation of the object.
2. str(): gives out an informal and nice looking user readable string.
3. print(): it simply is used to display the output in the console.

rajneeshmishra
Автор

repr() --> It gives an unambiguous representation of an object.
str() --> It readable representation of an object.
print() --> It displays objects to the console for user interaction.
Thank you guru ji.

risingaw
Автор

Dear Sir, I want to say you one thing that you put sincere efforts on your videos, your sincere effort is towards your viewers that they must learn something rather you must earn something. Highly appreciated. Higly motivated. I am someone who has chosed non tech field in life 8 years back and now after watching your videos once again trying to settle in tech world. Thank you very much. Its all because of you, thank you

waarisandziggy
Автор

00:02 Python makes working with numbers easier and more open.
02:41 Introduction to Python numbers and data types
07:28 Precision and clean code are essential in production.
09:25 Explicitly manage data types for precision and conversion.
13:44 Python provides almost infinite number handling capabilities
16:07 Python treats True as 1 and False as 0
20:29 When both statements are true, the result is true; if even one is false, it will be false.
22:22 Comparison and calculation of values in Python
26:12 Number precision in Python is almost impossible
28:28 Understanding number types in Python
32:40 Bitwise operations are done through bits in Python
35:04 Python provides convenient methods for generating random numbers and choices.
39:30 Python's Decimal Context Manager and Fractions provide precise handling of decimal values.
41:50 Python sets are a part of mathematics and can be manipulated in various ways
45:19 Boolean type in Python is internally treated like 1 for True and 0 for False
47:07 Boolean values are essential for working with numbers in Python

abhishekpatel
Автор

1. **`repr('chai')`**: This function returns a string representation that’s often more detailed. When printed, it will display the string enclosed in quotes to indicate it is indeed a string. So, `repr('chai')` outputs `"'chai'"` (a string that includes single quotes around "chai").

2. **`str('chai')`**: The `str()` function provides a more user-friendly string representation, often without additional characters like quotes. Here, `str('chai')` simply returns `'chai'`.

3. **`print('chai')`**: The `print()` function directly outputs the value in the console without quotes or any extra characters. So, `print('chai')` just shows `chai` as plain text.

In summary:
- `repr()` gives a precise representation, often for debugging.
- `str()` provides a simpler, readable format.
- `print()` outputs to the console as-is.

sarfarajmolla
Автор

This is just amazing.. I have 4.5 years of experience as data enginner but was never able to understand internals of python to this extent that too in so simple langauge. Just awesome. This series should be named as netflix series of python.

akshaykudale
Автор

if we print a string using the repr() function then it prints with a pair of quotes and if we calculate a value we get a more precise value than the str() function.
str() displays today’s date in a way that the user can understand the date and time. repr() prints an “official” representation of a date-time object (means using the “official” string representation we can reconstruct the object).

signalzo
Автор

Repr:shows the type of the object and mainly used to debugging.
Str:displays the object as string.
Print:prints the result

carbon
Автор

While repr() and str() are primarily used to obtain string representations of objects, with different levels of detail and formatting, print() is used to actually display output to the user. Each serves its own distinct purpose in Python programming.

pranaypaul
Автор

- repr()
gives a detailed result with type specific information.Mainly used for debugging because we can easily see the type of the object
repr([1, 2, 3])
'[1, 2, 3]'

- str()
provide more user friendly string representation

- print()
to print expressions result or to print anything on the console

priyamvashi
Автор

a very deep learning. Thank you Sir can't wait for django

AmitGusai-ui
Автор

1.) str()
Purpose: Converts things into human-readable strings.
Best for: Making data easy for people to understand.

2.)print()
Purpose: Displays things on the screen.
Best for: Giving the user output while your code is running.

3.)repr()
Purpose: Creates a technical representation of things (aimed at developers).
Best for: Debugging or figuring out how to recreate an object.

UtkarshWasHereBeforeYou
Автор

No one has taught Python like this. I am a big fan of your teaching skills... Thank you so much sir :)

kshirodpatel