Numbers in depth in python

Поділитися
Вставка

КОМЕНТАРІ • 670

  • @Art_0705
    @Art_0705 11 місяців тому +52

    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.

  • @dilkhush-raj
    @dilkhush-raj 11 місяців тому +47

    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 ❤

  • @NadaanParinde2
    @NadaanParinde2 11 місяців тому +15

    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.

  • @_saurav_jha
    @_saurav_jha 9 місяців тому +5

    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

  • @MudasirAbbas007
    @MudasirAbbas007 11 місяців тому +9

    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!

  • @Shivank_07
    @Shivank_07 11 місяців тому +8

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

    • @afzalhamdulay
      @afzalhamdulay 11 місяців тому +1

      nah bro. he is the king of teaching programming languages

  • @harleeneyd
    @harleeneyd 11 місяців тому +2

    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.

  • @rajneeshmishra6969
    @rajneeshmishra6969 Місяць тому

    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.

  • @signalzo5119
    @signalzo5119 10 місяців тому +2

    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).

  • @RamDash-og9ql
    @RamDash-og9ql 11 місяців тому +13

    Waiting for next video

  • @waarisandziggy
    @waarisandziggy 11 місяців тому +1

    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

  • @akshaykudale4762
    @akshaykudale4762 6 місяців тому +1

    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.

  • @carbon3630
    @carbon3630 9 місяців тому +1

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

  • @sarfarajmolla1689
    @sarfarajmolla1689 2 місяці тому +1

    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.

  • @creepopsub2936
    @creepopsub2936 23 дні тому

    repr() -> Jo print hone pe answer ayega string of that. suppose repr(type of 'helo') hai to it will give 'class '. output ko just ' lagake string bnadiya.
    str() -> type casting. Used for converting a other datatype to string.
    print() -> just ouput function. give output. Use str() at back.

  • @priyamvashi2187
    @priyamvashi2187 2 місяці тому

    - 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

  • @pranaypaul6361
    @pranaypaul6361 11 місяців тому +3

    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.

  • @abhishekpatel1436
    @abhishekpatel1436 11 місяців тому

    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

  • @SathyamanikantaBK
    @SathyamanikantaBK Місяць тому

    str(): Used for creating a human-readable representation of an object. Designed for end-users.
    -- Ex -- Using str(): String Representation: Hello
    repr(): Used for creating a developer-friendly representation of an object. Designed for debugging and should ideally be valid Python code.
    --Ex-- Using repr(): Example('Hello')
    print(): Used to output data to the console. It calls str() on its arguments to convert them to a string format before displaying them.
    --Ex -- Using print(): String Representation: Hello

  • @gameryoup2.013
    @gameryoup2.013 4 місяці тому

    repr(): Returns a developer-oriented string representation of an object, which is often unambiguous and can be used to recreate the object.
    str(): Returns a user-oriented string representation of an object, which is designed to be readable and friendly.
    print(): Displays the output to the console, converting objects to strings using str() and printing them

  • @Solutionswithnayan
    @Solutionswithnayan 3 місяці тому +1

    repr('chat') returns the string representation of object for debugging. str('chat') returns the human readable string reperesentation, print('chat') prints the message.

  • @kshirodpatel
    @kshirodpatel 11 місяців тому

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

  • @SuryaKarigar
    @SuryaKarigar 10 місяців тому

    16:20 repr() and str() represents the value in string format. But when we use print(), it prints the value without changing the datatype.

  • @UtkarshWasHereBeforeYou
    @UtkarshWasHereBeforeYou 10 місяців тому

    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.

  • @SAzeGamER18
    @SAzeGamER18 23 дні тому

    repr()=provides clear string debugging and representation
    str()=used to make output human friendly
    print()=used as a function to output

  • @Muhammadfaisal-kd9kx
    @Muhammadfaisal-kd9kx 4 місяці тому

    this is the best python series i have ever seen on youtube . thankyou sir for your efforts .

  • @risingaw1163
    @risingaw1163 9 місяців тому

    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.

  • @sounakbera7420
    @sounakbera7420 6 місяців тому

    repr() is used by developers to debug
    str() is used to show strings
    print() is used to display in the console and it uses str() to convert into strings

  • @vaishnavipol2377
    @vaishnavipol2377 6 місяців тому

    str() is used to represent a string in a more readable format.
    repr() is used to represent a string in official format.
    The main difference between the two is that str is meant to be more user-friendly, while repr is meant to be more machine-friendly.
    print() function prints the specified message to the screen or other standard output device.

  • @KaleshGharKa
    @KaleshGharKa 11 місяців тому

    Sir please do not stop this series. This is not just a series, it will be define the future of upcoming generation.

  • @Sakin_Islam
    @Sakin_Islam 10 місяців тому

    Actually you deserve millions sir !
    JavaScript ,React ,Serverless, Node ,MongoDB , now python, I learned everything from you

  • @pratikkesharwani9080
    @pratikkesharwani9080 4 місяці тому

    repr() :- Provides an official, developer-oriented string representation, often including detailed and precise information about the object
    str() :- Provides a user-friendly, readable string representation intended for end-user display.
    print() :- return an output text to the console, using str() to convert objects into their string form.

  • @JAKIRHOSSAIN-pz5sh
    @JAKIRHOSSAIN-pz5sh 7 місяців тому

    repr() is for machine-readable representations used in debugging and development.
    str() is for human-readable representations used for display purposes.
    print() is a function used to output text representations of objects to the console. It internally uses str() to convert objects to strings before printing.

  • @sandeepkarukayil
    @sandeepkarukayil 4 місяці тому

    str() returns human readable string ,used for creating userfriendly output
    repr() returns one representation string of object , used for development purposes
    print display text or values to output

  • @AmitGusai-u7i
    @AmitGusai-u7i 11 місяців тому +1

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

  • @saurabhjaykar1603
    @saurabhjaykar1603 7 місяців тому

    time stamp : 16.20
    -repr(): Returns a detailed string with extra information, useful for debugging. For strings, it includes quotes.
    - Example: `repr("chai")` -> `"'chai'"`
    - str()` Converts an object to a string in a straightforward, readable form.
    - Example: `str("chai")` -> `"chai"`
    - print(): Directly displays the content to the console.
    - Example: `print("chai")` -> Displays: `chai`

  • @music_2311
    @music_2311 11 місяців тому

    In depth Video of numbers in python !!!!!! grateful to have you as a teacher on youtube who really giving a high level content in free

  • @MohdUvaisKhan-lu5bl
    @MohdUvaisKhan-lu5bl 10 місяців тому

    I paid for a coding bootcamp but learning from your javascript series.
    Now everyone can understand what kind of content and quality Hitesh is providing.

  • @satyaprakashpatra-u6h
    @satyaprakashpatra-u6h 4 місяці тому +1

    best content on yt

  • @Dibyendu-dev
    @Dibyendu-dev 3 місяці тому

    Python, str is used to represent a string in a more readable format, while repr is used to represent a string in an unambiguous and official format. The main difference between the two is that str is meant to be more user-friendly, while repr is meant to be more machine-friendly

  • @arslanabid2245
    @arslanabid2245 11 місяців тому

    Never thought python would have that much depth in differnt concepts of programming.
    Thankyou soo much sir for the video

  • @justtt.prerna
    @justtt.prerna 11 місяців тому

    repr() is for official representation and debugging,
    str() is for user-friendly representation,
    print() is for displaying output on the console, with str() used internally for conversion.

  • @abhishekkumbhar7079
    @abhishekkumbhar7079 11 місяців тому

    str() is used for creating a human-readable string representation, repr() is used for creating a developer-friendly representation, and print() is used for displaying output on the screen. The distinction between str() and repr() is more evident when dealing with complex objects and is particularly useful for debugging and development purposes.

  • @Mohdkaif-hx2um
    @Mohdkaif-hx2um 8 місяців тому

    The best thing about your videos is the storytelling element you add in your teaching. Makes your content top notch and intresting but not boring!!

  • @user-wp7kd9dv6i
    @user-wp7kd9dv6i 11 місяців тому

    str(): This function returns a human-readable string representation of an object. The output from str() is generally meant to be easy for humans to understand. It aims to provide a user-friendly representation of the object.
    repr(): This function returns the "official" string representation of an object. The output from repr() is more focused on being an unambiguous representation of the object's state. It is often used for debugging purposes or when you need to recreate the object using eval().

  • @hardikrawal4922
    @hardikrawal4922 3 місяці тому

    35:29 Hitesh Sir, there is one correction here. If we write random.randint(1,100) then it will show all the numbers between them including 1 and 100.

  • @MS_Raunak
    @MS_Raunak 11 місяців тому

    Never found such type of videos on youtube, its truely wonderful

  • @akshayrathore_1197
    @akshayrathore_1197 11 місяців тому

    100
    sirji kya high quality content h apka
    mene apki Javascript wali oneshot video dekhi aur fan ho gaya apka
    aur ab python karunga apke sath bss view kam dekh k video post karna mt band karna please
    comment ka target m akela pura kar dunga 😎😎
    Thanks you Guruji

  • @sameedansari6838
    @sameedansari6838 7 місяців тому +1

    str() uses to print specified object into string.
    repr() gives us a most precise value of a object

  • @OneOne-c7d
    @OneOne-c7d 11 місяців тому

    Your coding guidance is the North Star in my programming journey.

  • @JustDoItForNow
    @JustDoItForNow 11 місяців тому

    wow your explanation is and teaching methods is "Super" bhi
    But here is some important things is Missing for beginners to learn complete JavaScript from basic to advance which you " claim " that is === please please please add separate videos after recording a lecture which is for practicing Question 2 how to practice question 3 how to make question by own 4 How to create small program but by own
    How to convert real life example into code e.g ( kab school Jana hin kab nhi jana hin) ( monthly expanses) and many more

  • @osirgee5306
    @osirgee5306 10 місяців тому

    print() is used for to the console, str() is used to obtain a user-friendly string representation , and repr() is used for debugging purposes.

  • @Aniket_0314
    @Aniket_0314 10 місяців тому

    repr() -> The repr() function is used to obtain the official string representation of an object. It should ideally be unambiguous and, if possible, informative about the object.
    str() -> The str() function is used to obtain the "informal" or "user-friendly" string representation of an object. It's intended for display to end-users.
    print() -> Internally uses the str() function to convert objects to their string representation before printing them to the console.
    Additional REPL (Read-Eval-Print Loop) automatically uses repr() to display the results of expressions

  • @sidhantarya2483
    @sidhantarya2483 10 місяців тому

    "repr" stands for representation. repr() returns a printable string representation of the passed object. It is mainly used for debugging and development.
    str() is more suitable for user-friendly output and displaying the object as a string.
    print() accepts one or more arguments and prints the standard output.

  • @talhashehzore
    @talhashehzore 7 місяців тому

    The str() function converts the given object into a string.
    It's commonly used for displaying output or for converting non-string objects into strings.
    It is used to create a human-readable representation of the object.
    The repr() function also converts the given object into a string.
    It returns a representation of the object that is more suitable for debugging and developers.

  • @OMKARANAVKAR
    @OMKARANAVKAR 11 місяців тому

    str() returns a readable string representation of an object i.e. in human readable format.
    repr() returns an unambiguous string representation of an object. Which is more useful for developers.
    print() converts objects into strings before showing on screen.

  • @engineering-maths
    @engineering-maths 7 місяців тому

    repr() is for developers, providing detailed and unambiguous representations.
    str() is for end-users, providing more readable representations.
    print() implicitly calls str() and outputs the result to the console.

  • @funkyboy4882
    @funkyboy4882 11 місяців тому

    print() function takes any number of parameters and prints them to the standard output source.
    str() function converts objects or any data types into string
    repr() function is used to 'represent' objects to string in such a manner that when eval function is applied on those strings we can get back those objects.
    If I am wrong or left anything, please let me know.

  • @Ravindersingh-d2j
    @Ravindersingh-d2j 4 місяці тому

    India is blessed having teacher like Hitesh Sir

  • @VivekKumarMaurya-qp4el
    @VivekKumarMaurya-qp4el 4 місяці тому

    I've done python in my 11th watched other courses but the level of depth in this one is really great
    Also done javascript from this channel really amazing experience

  • @shamlazunjare6342
    @shamlazunjare6342 9 місяців тому

    some videos get bored, but when i see your videos i am enjoying. U are awesome sir😊

  • @sameer23377
    @sameer23377 Місяць тому

    repr()provides a string representation and using for debugging and for showing a full fledged object represenation

  • @suryapratap_bit
    @suryapratap_bit 11 місяців тому

    repr():used for debugging by developer
    str(): human readable output on console
    print(): implicitly calls str() for output.

  • @nigam_sharma
    @nigam_sharma 9 місяців тому

    str() and repr() both convert objects into strings, but repr() produces a more detailed and unambiguous representation, suitable for debugging and logging.
    print() is used to display objects

  • @nikshadali50
    @nikshadali50 11 місяців тому

    On of the best Python course on UA-cam due to Sir Hitesh teaching styling

  • @tarundalbera1815
    @tarundalbera1815 3 місяці тому

    repr() Function returns a printable representation of an object.
    str() function is used to convert an object to its string representation.

  • @parneetsingh3143
    @parneetsingh3143 3 місяці тому +1

    My First program: print("Hitesh Sir is awesome") 😇

  • @JustDoItForNow
    @JustDoItForNow 11 місяців тому

    wow your explanation is and teaching methods is "Super" DeDe
    But here is some important things is Missing for beginners to learn complete JavaScript from basic to advance which you " claim " that is === please please please add separate videos after recording a lecture which is for practicing Question 2 how to practice question 3 how to make question by own 4 How to create small program but by own

  • @deepakvattamwar6921
    @deepakvattamwar6921 11 місяців тому

    One of the best series of python on UA-cam

  • @mariaali9935
    @mariaali9935 10 місяців тому

    Thanks for this series. I love to watch your videos. And when I feel lazy your videos give me energy to learn and I enjoy a lot my learning because of you ❤. Best teacher

  • @nikitatripathi5883
    @nikitatripathi5883 11 місяців тому +1

    Following consistently and loving it. ❤😊

  • @shubhigupta1766
    @shubhigupta1766 4 місяці тому

    Here is something I want to drag your attention to:
    the two operators (and, or) are called short circuit operator meaning in case of and if the first expression is evaluated as False the second argument is not checked and in case of or if the first statement is evaluated as True the second argument is not evaluated. Here is the example:
    >>> x = 5
    >>> y = 10
    >>> x > y and print(x)
    False
    >>> x < y and print(x)
    5
    >>> x < y or print(x)
    True
    >>> x > y or print(x)
    5
    😉

  • @SayyadOmaiz
    @SayyadOmaiz 11 місяців тому

    Thank you sir
    Please saare videos ek saath upload kerdijiye sir...qki I remember k aapne kaha tha k 60-70% course pehle se hi cmpleted hai....nd as an engineer I can say tht k one sitting me koi bhi course cmplt kerne ki aadat hoti hai hum sbhi engineers ko😂

  • @ShivamThakur-pl7ew
    @ShivamThakur-pl7ew 11 місяців тому

    Thank you sir, for giving quality of content for free. Love from heart

  • @Mohdkaif-hx2um
    @Mohdkaif-hx2um 8 місяців тому

    Your video are very informative
    And your way of teaching makes helps to memories easily

  • @NoorulAmin-g4q
    @NoorulAmin-g4q 3 дні тому

    Fantastic job hitesh sir.

  • @PatadiyaManish
    @PatadiyaManish 10 місяців тому

    Awesome playlist sir , market me boom laga diya 🎉

  • @MrVaibhavv
    @MrVaibhavv 10 місяців тому

    i have already good command on python, but i learnt so much internal workings of python from you, thanks a lot sir ❤

  • @yashdodiya5388
    @yashdodiya5388 11 місяців тому +1

    Thank you so much sir waiting for next video

  • @sairajkulkarni23
    @sairajkulkarni23 11 місяців тому

    Please dont stop this series.

  • @Saurav_Vibhuti
    @Saurav_Vibhuti 11 місяців тому

    Your teching technique is unique , Sir❤

  • @Dipzeus
    @Dipzeus 11 місяців тому +1

    Bas aise hi tagda content chahiye.. requesting development perspective se padha Dena. I know a big ask..you have other works par I want to do good in python. oops , recursion, functions portion ko acche se cover karwaiyega. I am weak in those.

  • @happy.-.sharma-c2v
    @happy.-.sharma-c2v 11 місяців тому +10

    I am following you from *ChaiAurJavaScript* , Becoz my ear feels 7th floor of Sky after listening *Hanji** in your Voice 😊😊😊.

  • @MaazKhan-vp5dq
    @MaazKhan-vp5dq 4 місяці тому

    What a GREAT GEM you are Sir!!!!

  • @LittleBlueBook1
    @LittleBlueBook1 11 місяців тому

    sir please continue this series with same pace.

  • @coding-with-confidence
    @coding-with-confidence 10 місяців тому

    A repr() function returns a string containing a printable representation of an object. For many types, this function tries to return a string.
    studentName="Bilal"
    print(repr(studentName)) >> "Bilal"
    details={"teacherName":"Sir Hitesh"}
    print(type(repr(details))) >>

  • @pondacherry
    @pondacherry 10 місяців тому

    Best example of (and ,or) ever trully .Ab hemesha yaad rahega

  • @funkyboy4882
    @funkyboy4882 11 місяців тому

    Abb dheere dheere Python ki powers ka andaaza ho raha hai, sir python se networking mai bhi kuch sikha dijiye, I love networks, aapse behter networks kaun sikhayega

  • @sanjaykushwah8271
    @sanjaykushwah8271 10 місяців тому

    Sir,Your content and teaching style surpass paid courses by far.

  • @AAKASHSHRESTHA-o5p
    @AAKASHSHRESTHA-o5p Місяць тому

    Sir now,
    Data Science Course too
    Didn't get the enough resources in UA-cam
    Will help us a lot ❤️

  • @mudassarnadeem4084
    @mudassarnadeem4084 8 місяців тому

    Great Sir Your Teaching Extremely Fantastic especially @loops🥰

  • @priyabratadas8583
    @priyabratadas8583 11 місяців тому +1

    Thank you so much Sir for contributing so much ❤

  • @chdayasingh
    @chdayasingh 11 місяців тому

    repr() function returns a printable representation of the object by converting that object to a string.

  • @abhishekjaiswal6114
    @abhishekjaiswal6114 11 місяців тому

    lots of fun with code really enjoy this series spread all mu clg friends

  • @SHILPASINGH-r9e
    @SHILPASINGH-r9e 21 день тому

    Thank you Sir , for sharing your knowledge with us .

  • @yashrawat7007
    @yashrawat7007 11 місяців тому +1

    Sir continue the series we are with you❤❤❤

  • @jm-xv3wh
    @jm-xv3wh 11 місяців тому

    thanks a lot please keep this series running it is great for student

  • @funkyboy4882
    @funkyboy4882 11 місяців тому +1

    Thanku sir ji for this amazing series

  • @krishnamania1
    @krishnamania1 11 місяців тому +1

    Repr gives string representation , str gives us a string , print just prints it on screen

  • @rajborpe
    @rajborpe 11 місяців тому

    Please keep this series running.