Numbers in depth in python

  Рет қаралды 38,005

Chai aur Code

Chai aur Code

Күн бұрын

Пікірлер: 660
@Art_0705
@Art_0705 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
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.
@MudasirAbbas007
@MudasirAbbas007 10 ай бұрын
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_jha
@_saurav_jha 8 ай бұрын
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_07
@Shivank_07 10 ай бұрын
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 10 ай бұрын
nah bro. he is the king of teaching programming languages
@RamDash-og9ql
@RamDash-og9ql 10 ай бұрын
Waiting for next video
@harleeneyd
@harleeneyd 10 ай бұрын
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.
@waarisandziggy
@waarisandziggy 10 ай бұрын
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 ай бұрын
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 8 ай бұрын
Repr:shows the type of the object and mainly used to debugging. Str:displays the object as string. Print:prints the result
@rajneeshmishra6969
@rajneeshmishra6969 27 күн бұрын
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.
@abhishekpatel1436
@abhishekpatel1436 10 ай бұрын
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
@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.
@pranaypaul6361
@pranaypaul6361 10 ай бұрын
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.
@kshirodpatel
@kshirodpatel 10 ай бұрын
No one has taught Python like this. I am a big fan of your teaching skills... Thank you so much sir :)
@signalzo5119
@signalzo5119 10 ай бұрын
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).
@risingaw1163
@risingaw1163 8 ай бұрын
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-u7i
@AmitGusai-u7i 10 ай бұрын
a very deep learning. Thank you Sir can't wait for django
@KaleshGharKa
@KaleshGharKa 10 ай бұрын
Sir please do not stop this series. This is not just a series, it will be define the future of upcoming generation.
@music_2311
@music_2311 10 ай бұрын
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_Islam
@Sakin_Islam 9 ай бұрын
Actually you deserve millions sir ! JavaScript ,React ,Serverless, Node ,MongoDB , now python, I learned everything from you
@OneOne-c7d
@OneOne-c7d 10 ай бұрын
Your coding guidance is the North Star in my programming journey.
@arslanabid2245
@arslanabid2245 10 ай бұрын
Never thought python would have that much depth in differnt concepts of programming. Thankyou soo much sir for the video
@priyamvashi2187
@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-kd9kx
@Muhammadfaisal-kd9kx 3 ай бұрын
this is the best python series i have ever seen on youtube . thankyou sir for your efforts .
@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.
@MS_Raunak
@MS_Raunak 10 ай бұрын
Never found such type of videos on youtube, its truely wonderful
@Mohdkaif-hx2um
@Mohdkaif-hx2um 7 ай бұрын
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!!
@parneetsingh3143
@parneetsingh3143 3 ай бұрын
My First program: print("Hitesh Sir is awesome") 😇
@UtkarshWasHereBeforeYou
@UtkarshWasHereBeforeYou 9 ай бұрын
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-lu5bl
@MohdUvaisKhan-lu5bl 9 ай бұрын
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-c2v
@happy.-.sharma-c2v 10 ай бұрын
I am following you from *ChaiAurJavaScript* , Becoz my ear feels 7th floor of Sky after listening *Hanji** in your Voice 😊😊😊.
@Ravindersingh-d2j
@Ravindersingh-d2j 4 ай бұрын
India is blessed having teacher like Hitesh Sir
@timepasi
@timepasi 3 ай бұрын
repr('chat') returns the string representation of object for debugging. str('chat') returns the human readable string reperesentation, print('chat') prints the message.
@nikitatripathi5883
@nikitatripathi5883 10 ай бұрын
Following consistently and loving it. ❤😊
@nikshadali50
@nikshadali50 10 ай бұрын
On of the best Python course on KZbin due to Sir Hitesh teaching styling
@yashdodiya5388
@yashdodiya5388 10 ай бұрын
Thank you so much sir waiting for next video
@satyaprakashpatra-u6h
@satyaprakashpatra-u6h 3 ай бұрын
best content on yt
@akshayrathore_1197
@akshayrathore_1197 10 ай бұрын
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
@shamlazunjare6342
@shamlazunjare6342 9 ай бұрын
some videos get bored, but when i see your videos i am enjoying. U are awesome sir😊
@creepopsub2936
@creepopsub2936 3 күн бұрын
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-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.
@abhishekkumbhar7079
@abhishekkumbhar7079 10 ай бұрын
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.
@vaishnavipol2377
@vaishnavipol2377 5 ай бұрын
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.
@deepakvattamwar6921
@deepakvattamwar6921 10 ай бұрын
One of the best series of python on KZbin
@SAzeGamER18
@SAzeGamER18 3 күн бұрын
repr()=provides clear string debugging and representation str()=used to make output human friendly print()=used as a function to output
@justtt.prerna
@justtt.prerna 10 ай бұрын
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.
@sameedansari6838
@sameedansari6838 6 ай бұрын
str() uses to print specified object into string. repr() gives us a most precise value of a object
@mariaali9935
@mariaali9935 9 ай бұрын
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
@pondacherry
@pondacherry 9 ай бұрын
Best example of (and ,or) ever trully .Ab hemesha yaad rahega
@sumitchavan3172
@sumitchavan3172 10 ай бұрын
Thankyou hitesh sir
@gameryoup2.013
@gameryoup2.013 3 ай бұрын
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
@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.
@ShivamThakur-pl7ew
@ShivamThakur-pl7ew 10 ай бұрын
Thank you sir, for giving quality of content for free. Love from heart
@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
@Dibyendu-dev
@Dibyendu-dev 2 ай бұрын
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
@funkyboy4882
@funkyboy4882 10 ай бұрын
Thanku sir ji for this amazing series
@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 ❤
@user-wp7kd9dv6i
@user-wp7kd9dv6i 10 ай бұрын
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().
@sidhantarya2483
@sidhantarya2483 9 ай бұрын
"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.
@PatadiyaManish
@PatadiyaManish 10 ай бұрын
Awesome playlist sir , market me boom laga diya 🎉
@MaazKhan-vp5dq
@MaazKhan-vp5dq 3 ай бұрын
What a GREAT GEM you are Sir!!!!
@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
@QuantumXdeveloper
@QuantumXdeveloper 10 ай бұрын
Today's class done, very informative lecture, thank u sir❤
@Aniket_0314
@Aniket_0314 9 ай бұрын
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
@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.
@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.
@JustDoItForNow
@JustDoItForNow 10 ай бұрын
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
@sounakbera7420
@sounakbera7420 5 ай бұрын
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-hx2um
@Mohdkaif-hx2um 7 ай бұрын
Your video are very informative And your way of teaching makes helps to memories easily
@priyabratadas8583
@priyabratadas8583 10 ай бұрын
Thank you so much Sir for contributing so much ❤
@mudassarnadeem4084
@mudassarnadeem4084 8 ай бұрын
Great Sir Your Teaching Extremely Fantastic especially @loops🥰
@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`
@sandeepkarukayil
@sandeepkarukayil 3 ай бұрын
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
@Dipzeus
@Dipzeus 10 ай бұрын
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.
@OMKARANAVKAR
@OMKARANAVKAR 10 ай бұрын
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_Vibhuti
@Saurav_Vibhuti 10 ай бұрын
Your teching technique is unique , Sir❤
@ankushladani496
@ankushladani496 7 ай бұрын
Dhanyavad Guruji...💪🚀
@yashrawat7007
@yashrawat7007 10 ай бұрын
Sir continue the series we are with you❤❤❤
@osirgee5306
@osirgee5306 9 ай бұрын
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
@SHILPASINGH-r9e Күн бұрын
Thank you Sir , for sharing your knowledge with us .
@shorter-uniqueclip5018
@shorter-uniqueclip5018 10 күн бұрын
very deep learning. Thank you Sir
@abhishekjaiswal6114
@abhishekjaiswal6114 10 ай бұрын
lots of fun with code really enjoy this series spread all mu clg friends
@SayyadOmaiz
@SayyadOmaiz 10 ай бұрын
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_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
@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.
@sairajkulkarni23
@sairajkulkarni23 10 ай бұрын
Please dont stop this series.
@samarthtiwari8355
@samarthtiwari8355 4 ай бұрын
Best Playlist out there👍
@FurqanAhmadHajiZada-o6z
@FurqanAhmadHajiZada-o6z 10 ай бұрын
amazing i learn a lot thank you so much sir .. love from Afghanistan..❤
@Abid-gamer5
@Abid-gamer5 8 ай бұрын
Thank you so much for this lesson sir ❤️
@sayandeepsadhukhan5016
@sayandeepsadhukhan5016 9 ай бұрын
Perfect Learning !!❤❤❤❤❤❤😊😊😊😊😊😊
@jm-xv3wh
@jm-xv3wh 10 ай бұрын
thanks a lot please keep this series running it is great for student
@badhanroy6023
@badhanroy6023 2 ай бұрын
every video is greatful 💖💖💖💖💖💖
@JustDoItForNow
@JustDoItForNow 10 ай бұрын
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
@qazimtahir
@qazimtahir 5 ай бұрын
Greatest lecture. Thanks 😀
@MCA_HimanshuSeth
@MCA_HimanshuSeth Ай бұрын
Very indepth knowledge sir 👍
@LittleBlueBook1
@LittleBlueBook1 10 ай бұрын
sir please continue this series with same pace.
@rohitmondal4143
@rohitmondal4143 10 ай бұрын
Hi Sir , your videos are really informative and just waiting for the next video to come.....
@AAKASHSHRESTHA-o5p
@AAKASHSHRESTHA-o5p 15 күн бұрын
Sir now, Data Science Course too Didn't get the enough resources in KZbin Will help us a lot ❤️
Strings in python
30:44
Chai aur Code
Рет қаралды 33 М.
The Only Database Abstraction You Need | Prime Reacts
21:42
ThePrimeTime
Рет қаралды 226 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 9 МЛН
Dictionary in python
26:16
Chai aur Code
Рет қаралды 29 М.
Why You Should Think Twice Before Using Returns in Python
21:27
ArjanCodes
Рет қаралды 26 М.
My Database Can Do This by Alexey Milovidov (DBDBD 2024)
19:12
DSDSD - Dutch Seminar on Data Systems Design
Рет қаралды 1,5 М.
A Jr Dev For Life?? | Prime Reacts
21:33
ThePrimeTime
Рет қаралды 326 М.
Internal working of python | Copy, reference counts, slice
30:20
Chai aur Code
Рет қаралды 36 М.
Solve 10 problems on functions in python
59:12
Chai aur Code
Рет қаралды 38 М.
Immutable and mutable in python
17:10
Chai aur Code
Рет қаралды 46 М.
4 Layers of Learning Every Student MUST Master
22:53
Justin Sung
Рет қаралды 66 М.
Is Python the Coding Language of the Future? A Brief Analysis
9:23
Apna College
Рет қаралды 561 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59