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-raj10 ай бұрын
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 ❤
@NadaanParinde210 ай бұрын
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.
@MudasirAbbas00710 ай бұрын
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!
@_saurav_jha8 ай бұрын
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
@Shivank_0710 ай бұрын
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 ♥♥
@afzalhamdulay10 ай бұрын
nah bro. he is the king of teaching programming languages
@RamDash-og9ql10 ай бұрын
Waiting for next video
@harleeneyd10 ай бұрын
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.
@waarisandziggy10 ай бұрын
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
@akshaykudale47626 ай бұрын
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.
@carbon36308 ай бұрын
Repr:shows the type of the object and mainly used to debugging. Str:displays the object as string. Print:prints the result
@rajneeshmishra696927 күн бұрын
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.
@abhishekpatel143610 ай бұрын
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
@sarfarajmolla1689Ай бұрын
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.
@pranaypaul636110 ай бұрын
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.
@kshirodpatel10 ай бұрын
No one has taught Python like this. I am a big fan of your teaching skills... Thank you so much sir :)
@signalzo511910 ай бұрын
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).
@risingaw11638 ай бұрын
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.
@AmitGusai-u7i10 ай бұрын
a very deep learning. Thank you Sir can't wait for django
@KaleshGharKa10 ай бұрын
Sir please do not stop this series. This is not just a series, it will be define the future of upcoming generation.
@music_231110 ай бұрын
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
@Sakin_Islam9 ай бұрын
Actually you deserve millions sir ! JavaScript ,React ,Serverless, Node ,MongoDB , now python, I learned everything from you
@OneOne-c7d10 ай бұрын
Your coding guidance is the North Star in my programming journey.
@arslanabid224510 ай бұрын
Never thought python would have that much depth in differnt concepts of programming. Thankyou soo much sir for the video
@priyamvashi2187Ай бұрын
- 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
@Muhammadfaisal-kd9kx3 ай бұрын
this is the best python series i have ever seen on youtube . thankyou sir for your efforts .
@SuryaKarigar10 ай бұрын
16:20 repr() and str() represents the value in string format. But when we use print(), it prints the value without changing the datatype.
@MS_Raunak10 ай бұрын
Never found such type of videos on youtube, its truely wonderful
@Mohdkaif-hx2um7 ай бұрын
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!!
@parneetsingh31433 ай бұрын
My First program: print("Hitesh Sir is awesome") 😇
@UtkarshWasHereBeforeYou9 ай бұрын
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.
@MohdUvaisKhan-lu5bl9 ай бұрын
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.
@happy.-.sharma-c2v10 ай бұрын
I am following you from *ChaiAurJavaScript* , Becoz my ear feels 7th floor of Sky after listening *Hanji** in your Voice 😊😊😊.
@Ravindersingh-d2j4 ай бұрын
India is blessed having teacher like Hitesh Sir
@timepasi3 ай бұрын
repr('chat') returns the string representation of object for debugging. str('chat') returns the human readable string reperesentation, print('chat') prints the message.
@nikitatripathi588310 ай бұрын
Following consistently and loving it. ❤😊
@nikshadali5010 ай бұрын
On of the best Python course on KZbin due to Sir Hitesh teaching styling
@yashdodiya538810 ай бұрын
Thank you so much sir waiting for next video
@satyaprakashpatra-u6h3 ай бұрын
best content on yt
@akshayrathore_119710 ай бұрын
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
@shamlazunjare63429 ай бұрын
some videos get bored, but when i see your videos i am enjoying. U are awesome sir😊
@creepopsub29363 күн бұрын
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.
@JAKIRHOSSAIN-pz5sh7 ай бұрын
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.
@abhishekkumbhar707910 ай бұрын
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.
@vaishnavipol23775 ай бұрын
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.
@deepakvattamwar692110 ай бұрын
One of the best series of python on KZbin
@SAzeGamER183 күн бұрын
repr()=provides clear string debugging and representation str()=used to make output human friendly print()=used as a function to output
@justtt.prerna10 ай бұрын
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.
@sameedansari68386 ай бұрын
str() uses to print specified object into string. repr() gives us a most precise value of a object
@mariaali99359 ай бұрын
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
@pondacherry9 ай бұрын
Best example of (and ,or) ever trully .Ab hemesha yaad rahega
@sumitchavan317210 ай бұрын
Thankyou hitesh sir
@gameryoup2.0133 ай бұрын
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
@pratikkesharwani90804 ай бұрын
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.
@ShivamThakur-pl7ew10 ай бұрын
Thank you sir, for giving quality of content for free. Love from heart
@VivekKumarMaurya-qp4el4 ай бұрын
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
@Dibyendu-dev2 ай бұрын
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
@funkyboy488210 ай бұрын
Thanku sir ji for this amazing series
@MrVaibhavv10 ай бұрын
i have already good command on python, but i learnt so much internal workings of python from you, thanks a lot sir ❤
@user-wp7kd9dv6i10 ай бұрын
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().
@sidhantarya24839 ай бұрын
"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.
@PatadiyaManish10 ай бұрын
Awesome playlist sir , market me boom laga diya 🎉
@MaazKhan-vp5dq3 ай бұрын
What a GREAT GEM you are Sir!!!!
@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
@QuantumXdeveloper10 ай бұрын
Today's class done, very informative lecture, thank u sir❤
@Aniket_03149 ай бұрын
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
@talhashehzore7 ай бұрын
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.
@engineering-maths7 ай бұрын
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.
@JustDoItForNow10 ай бұрын
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
@sounakbera74205 ай бұрын
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
@Mohdkaif-hx2um7 ай бұрын
Your video are very informative And your way of teaching makes helps to memories easily
@priyabratadas858310 ай бұрын
Thank you so much Sir for contributing so much ❤
@mudassarnadeem40848 ай бұрын
Great Sir Your Teaching Extremely Fantastic especially @loops🥰
@saurabhjaykar16037 ай бұрын
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`
@sandeepkarukayil3 ай бұрын
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
@Dipzeus10 ай бұрын
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.
@OMKARANAVKAR10 ай бұрын
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.
@Saurav_Vibhuti10 ай бұрын
Your teching technique is unique , Sir❤
@ankushladani4967 ай бұрын
Dhanyavad Guruji...💪🚀
@yashrawat700710 ай бұрын
Sir continue the series we are with you❤❤❤
@osirgee53069 ай бұрын
print() is used for to the console, str() is used to obtain a user-friendly string representation , and repr() is used for debugging purposes.
@SHILPASINGH-r9eКүн бұрын
Thank you Sir , for sharing your knowledge with us .
@shorter-uniqueclip501810 күн бұрын
very deep learning. Thank you Sir
@abhishekjaiswal611410 ай бұрын
lots of fun with code really enjoy this series spread all mu clg friends
@SayyadOmaiz10 ай бұрын
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😂
@nigam_sharma9 ай бұрын
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
@hardikrawal49223 ай бұрын
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.
@sairajkulkarni2310 ай бұрын
Please dont stop this series.
@samarthtiwari83554 ай бұрын
Best Playlist out there👍
@FurqanAhmadHajiZada-o6z10 ай бұрын
amazing i learn a lot thank you so much sir .. love from Afghanistan..❤
@Abid-gamer58 ай бұрын
Thank you so much for this lesson sir ❤️
@sayandeepsadhukhan50169 ай бұрын
Perfect Learning !!❤❤❤❤❤❤😊😊😊😊😊😊
@jm-xv3wh10 ай бұрын
thanks a lot please keep this series running it is great for student
@badhanroy60232 ай бұрын
every video is greatful 💖💖💖💖💖💖
@JustDoItForNow10 ай бұрын
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
@qazimtahir5 ай бұрын
Greatest lecture. Thanks 😀
@MCA_HimanshuSethАй бұрын
Very indepth knowledge sir 👍
@LittleBlueBook110 ай бұрын
sir please continue this series with same pace.
@rohitmondal414310 ай бұрын
Hi Sir , your videos are really informative and just waiting for the next video to come.....
@AAKASHSHRESTHA-o5p15 күн бұрын
Sir now, Data Science Course too Didn't get the enough resources in KZbin Will help us a lot ❤️