Python Class and Object

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 136

  • @mkhatiwada
    @mkhatiwada Před 8 lety +42

    I normally don't comment, but this definitely is the best video I have seen so far... Thank you JPJ.

  • @augustineokekeoma1750
    @augustineokekeoma1750 Před 4 lety +3

    You are in a class of your own alone and a single instance that is you, completely inimitable. Thanks for this generosity. I am finally at home with python. I can now sit down and work. God keep blessing you.

  • @ImmiTheKhan
    @ImmiTheKhan Před 3 lety +1

    You are the best tutor on the platform with great indepth explanation and graphics.

  • @emmanuelmendozasosa677
    @emmanuelmendozasosa677 Před 7 lety +2

    This was one of the best videos I found when I pushed myself in programming. I've seen it again and it's still the best video to understand what's going on behind the scenes.

  • @zacklee5787
    @zacklee5787 Před 9 lety +8

    I Like how you explain things normally written in text, as visual images. Its alot better than just memorizing statements.

  • @sauravshukla1
    @sauravshukla1 Před 7 lety +2

    Jones ...your these tutorial video are just on another level.I usually do not comment on social media,but these are the best Python oops video I have watched and grasped so well soo far!Now I am feeling like I can create anything with my codes!Thank you Soo much

  • @VamshiKanthKota
    @VamshiKanthKota Před 7 lety +5

    I think this is my first comment on youtube. I gave up on couple of other courses as I just cant memorize things until the logic behind sinks in my head.
    This surely did.., I dont just see the video here, but, how much you have the student's perception. I am learning more than python.. The thought process, teaching skills, visualisation of an idea., creativity. You made my day John Philip Jones !!!

    • @johnphilipjones
      @johnphilipjones  Před 7 lety +2

      Thank you for your positive comments. Glad the videos are helping.
      Best wishes
      Phil
      (John Philip Jones)

  • @J2897Tutorials
    @J2897Tutorials Před 9 lety +7

    That was awesome! This was ripping my brain apart. But your visuals just made everything crystal clear! Thanks!

  • @MattMay
    @MattMay Před 8 lety +5

    Excellent presentation and explanation of a fairly complex subject!

  • @snamone
    @snamone Před 9 lety +1

    Yet another great class, thanks for all the thought, time and effort you put into your online tutorials.

    • @johnphilipjones
      @johnphilipjones  Před 9 lety

      +snamone Thank you for commenting
      Best Wishes
      Phil
      (John Philip Jones)

  • @jeremykerrigan5309
    @jeremykerrigan5309 Před 8 lety

    I like how all your videos go slow and you repeat the points of lesson over and over. It really hammers it home. Thanks for all your help and time that you put towards these tutorials. I am learning a lot.

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +Jeremy Kerrigan Glad the videos are helping. Tank you for commenting it is appreciated. Best wishes Phil (John Philip Jones)

  • @judeleon8485
    @judeleon8485 Před 4 lety +1

    John, you are too good! I can't find a better explanation than this anywhere. Very simplified

  • @sololalolo7380
    @sololalolo7380 Před 2 lety +2

    Good explanation .. Thank Sir

  • @jimclay75050
    @jimclay75050 Před rokem

    Again thank you. This is the second series of yours I've watched, the other one being on namespaces, and they both have helped me greatly. I know a lot of this stuff, but your videos helped me sharpen my thinking about Python and to get rid of some of my fuzzy thinking.

  • @seanc.5310
    @seanc.5310 Před 8 lety +9

    John, thanks for your thorough explanation on these Python topics. I've found these very helpful with my Python course I am taking in school. I can tell how much effort you've put into creating these for us. Thank you sir!

  • @hasan135
    @hasan135 Před 3 lety +1

    I have not seen such a nice explanation of class and object. Fantastic job. Thanks JPJ.

  • @ikramshariff
    @ikramshariff Před 6 lety +1

    Your way of explaining OOPS concept in a diagram is Awesome. Thank You.

  • @francismannion7075
    @francismannion7075 Před 6 lety +1

    Thank you for an excellent video. It was easy to follow and interesting . I only wish I had access to this in the 1970's !!!
    Great job.

  • @RoyderTreue
    @RoyderTreue Před 9 lety +1

    Great work, i really appreciate it! Thanks for videos like that. Using images, keeping it slow enough and linking it to the ordinary world, this is what makes people understand abstract things!

  • @willgaylan5593
    @willgaylan5593 Před 4 lety +1

    not usual for me too to comment,but i was great,i likes its simplicity and the way things explained in its tiny pieces of details,so its easy to follow along, and understand the logic and principle. but i wish you make a full course for python video. please thank you...

  • @andrewbaker6346
    @andrewbaker6346 Před 7 lety +1

    Never commented on any video before but this is so, so good. Best explanation of Classes I've seen.

  • @SmokeBreak69
    @SmokeBreak69 Před 5 lety +2

    Very useful for explaining the fundamentals of what can be a difficult topic to a beginner. Thanks you.

  • @BOGDES83
    @BOGDES83 Před 3 lety +1

    Great! You are amazing, mister!

  • @thomassbahtu1503
    @thomassbahtu1503 Před 5 lety +2

    the best video for beginners, step by step well explained

  • @ko95
    @ko95 Před 4 lety +1

    what a gem your lectures are!

  • @avmteja
    @avmteja Před 8 lety +1

    Thank You, it was the Best explanations about classes and objects so far I heard from

  • @breezysaint9539
    @breezysaint9539 Před 9 lety +3

    I'm a visual guy so, your video makes my understanding so much easier, thank you sir!

    • @johnphilipjones
      @johnphilipjones  Před 9 lety +2

      Breezy Saint Thank you for commenting. I am a firm believer that a visual explanation is always superior to just text. I would like to invite you to join the following community on Python..
      plus.google.com/communities/108318057967049881054?partnerid=ogpy0
      Regards
      Phil
      (John Philip Jones)

    • @breezysaint9539
      @breezysaint9539 Před 9 lety +2

      John Philip Jones Gladly!

  • @rameshkhadka7605
    @rameshkhadka7605 Před 4 lety

    Thank you, sir, u nailed it. Your teaching style is 100000000 times better than my college tutor. You deserve millions of subscribers. love from Nepal. #staysafe sir

    • @johnphilipjones
      @johnphilipjones  Před 4 lety

      Thank you for your positive comments it is appreciated.
      Best wishes
      Phil

  • @hahaz5117
    @hahaz5117 Před 4 lety +1

    Thxxxxx, I am so grateful to see this helpful video

  • @jvsnyc
    @jvsnyc Před 3 lety +1

    Such good solid coverage of the basics, nice to see.

  • @andrewwilson451
    @andrewwilson451 Před 8 lety

    this is a cracking series of videos, I'm watching it all the way through. Thank you for taking the trouble to do and share them.

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      Thank you check out the following link:
      www.pythonbytesize.com/
      I would be grateful if you shared the link with anybody you think might benefit
      Best wishes
      Phil
      (John Philip Jones)

  • @maedward928
    @maedward928 Před 5 lety +1

    Thank you,
    John Philip Jones
    The explanation is very definite, it helps me a lot!

  • @wadisanaa
    @wadisanaa Před 9 lety +2

    this is tantamount to spoon feeding. Well done.

  • @sephkm7482
    @sephkm7482 Před 9 lety +1

    Thanks a lot for a very helpful video, very awesome! This makes the 'object' concept very clear and understandable.

  • @samiadel7043
    @samiadel7043 Před rokem +1

    Thank you sir, you are really perfect ❤️.

  • @shiridalal273
    @shiridalal273 Před 4 lety +1

    it's all so clear and the images and graphics really helps. thanks!

  • @n3los
    @n3los Před 9 lety +3

    Pretty nice explanation, visual diagrams make much more easier to understand and keep data on my head :) congratulations for a fantastic work

    • @johnphilipjones
      @johnphilipjones  Před 9 lety +1

      Hello Daniel,
      Thank you for your generous comment.
      Best wishes
      Phil
      (John Philip Jones)

  • @oscargracias8211
    @oscargracias8211 Před 7 lety +2

    Thanks for the video. I can use it as a add-on tool for teaching it to my students who are visual learners.

  • @ko95
    @ko95 Před 4 lety +2

    perfect for visual learners

  • @sunyibing5282
    @sunyibing5282 Před 4 lety +1

    That s the most clear lesson I saw, Thx.

    • @sunyibing5282
      @sunyibing5282 Před 4 lety

      Could you pls tell me what animation software you are using to create these lessons? Thank you.

  • @tariqshabirbhatti4793
    @tariqshabirbhatti4793 Před 5 lety +1

    Wao amazing.. Lots of love ... thanks allot..

  • @Unwired9374
    @Unwired9374 Před 7 lety +1

    Great video! Very helpful. Thank you.

  • @premanandramnath
    @premanandramnath Před 9 lety +2

    Hello John, awesome explanation. Helps to understand the basics for the novice & refreshing for intermediate folks. It would be great if you can post similar videos on Python Threading.. Thanks in advance. Great work!!!

    • @johnphilipjones
      @johnphilipjones  Před 9 lety

      Prem Anand Thank you. I will be covering threading soon maybe two or three months
      Phil

  • @9966663644
    @9966663644 Před 8 lety

    Great Work sir..........!

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +anil Pathapati Thank you
      Regards
      Phi;
      (John Philip Jones)

  • @shaikrasheed2861
    @shaikrasheed2861 Před 4 lety

    U r teaching was excellent,,,we expect more videos from u😍

  • @nubeslocas
    @nubeslocas Před 8 lety

    Very helpful video. Thanks for such clear explanation of it :)

  • @alextrader9220
    @alextrader9220 Před 6 lety +1

    I thought Corey Schafer was good, but these videos are way better!

  • @hafizsofian6122
    @hafizsofian6122 Před 8 lety

    This video give me more than I needed. Thanks!

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +Hafiz Sofian Glad it helped thank you for commenting.
      Best wishes
      Phil
      (John Philip Jones)

  • @Dimitrius00
    @Dimitrius00 Před 9 lety

    Really helpful to understand the concept of class.

    • @johnphilipjones
      @johnphilipjones  Před 9 lety

      Thank you for commenting
      Best Wishes
      Phil

    • @asmartbajan
      @asmartbajan Před 9 lety

      Yes, I quite agree. Whereas before I had some nebulous understanding of the concept, I now _grok_ it :)
      Clearly, Mr. Jones has a gift for teaching.

    • @johnphilipjones
      @johnphilipjones  Před 9 lety +1

      Wayne Phillips Thank you for your generous comment
      Best wishes
      Phil
      (John Philip Jones)

  • @rifleman542
    @rifleman542 Před 8 lety +1

    excellent explanation, thanks a lot! other videos don't go into details like you do perhaps because they themselves do not understand it as well as you do

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +1

      Thank you for your positive comments. They are appreciated.
      Best wishes
      Phil
      (John Philip Jones)

  • @ahmadkarim15
    @ahmadkarim15 Před 8 lety +1

    Great work , thank you !

  • @hafizsofian6122
    @hafizsofian6122 Před 8 lety +1

    Just a question. For example I created a class named MyClass. So, when I assigned it like this (I believe this is called as 'instantiating' the class):
    class = MyClass()
    The things happening right here (the concept) is just like in the video? Means that an object is created, labelled as class, and has the attribute ad defined in the MyClass class, and the created objet itself will exists in its own right?

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +2

      +Hafiz Sofian Yes but make sure you do not use the word class as it is a reserved word. You could use:
      my_object = MyClass()
      So my_object is now an object and has all the members declared in MyClass.
      Other language use the following to created an object:
      myObject = new MyClass() i.e. they have the addition word new.
      Regards
      Phil
      (John Philip Jones)

    • @hafizsofian6122
      @hafizsofian6122 Před 8 lety +1

      +John Philip Jones Thanks! This really clear things up for me.

  • @gebremariammruts515
    @gebremariammruts515 Před 6 lety +1

    Really Really nice and thanks for!

  • @niceprabu
    @niceprabu Před 7 lety +1

    nice video Excellant

  • @MrAverageViewer
    @MrAverageViewer Před 8 lety

    John, thank you for creating such a clear and easy-to-understand approach to teaching Python! I wish all programming tutorials were explained in this clearly. Do you teach other programming languages?

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +Michael DeGuzman Thank you for your positive comment. I have taught numerous languages C, Java, VB, machine code and Pascal but have only produced videos on Python. I will be moving onto videos on Java when I have finished the series on Python (in about 18 months)
      Best wishes
      Phil
      (John Philip Jones)

  • @AdityaPratapsingh9125
    @AdityaPratapsingh9125 Před 7 lety +1

    Thanks a lot.This was awesome

  • @srawoorkar2010
    @srawoorkar2010 Před 9 lety

    Very good explanation

    • @johnphilipjones
      @johnphilipjones  Před 9 lety +1

      Thank you check out the supporting website for these videos on Python
      www.pythonbytesize.com/
      Best wishes
      Phil

  • @Blair865
    @Blair865 Před měsícem +1

    Who else came here from the link Jamie posted on the" 100 Days of Code: The Complete Python Pro Bootcamp" Q&A😂

  • @SusanAmberBruce
    @SusanAmberBruce Před 8 lety +2

    OK Mr Jones very good, I would like to ask you about the id that gives a 10 digit number in your example and also gives a 10 digit number when I followed your example using 3.5 python on Windows platform, So the question is this : where is this number pointing to literally (presumably in the execution space that python is using), can I find out what address this is as an address in ram for example ?

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +1

      +Susan Bruce In CPython according to the official documentation the unique ID is the address of the object. I would advise not to worry about the actual memory address.as the advantage of using a high level language is that the underlining mechanisms are hidden from the programmer. However, my initial profession was as a machine code programmer and I can understand why you would ask this question. I have covered the id function in another video and it can be located at the link below:
      www.pythonbytesize.com/video-pythons-id-function.html
      There is also this video:
      www.pythonbytesize.com/video-pythons-id-function-and-names.html
      Best wishes
      Phil
      (John Philip Jones)

    • @SusanAmberBruce
      @SusanAmberBruce Před 8 lety

      John Philip Jones Thank you for the links.
      My interest is because my first experience in programing was on the Intel 8080 and the Motorola chip that had relative addressing.
      6502 I think, both were 8 bit with 16 bit address bus.
      So with this encryption program that I am attempting to write; having the equivalent of peek and poke would be very useful.

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +1

      Susan Bruce I started on the Zilog Z80 and the 6502. Professionally I coded the 6511 a single chip system suitable for embedded systems. It contained the 6511 and input output lines that allowed for connection to ADC and DAC. I used to be an electronics engineer.

    • @SusanAmberBruce
      @SusanAmberBruce Před 8 lety +1

      John Philip Jones My Dad was a computer engineer, he worked for I.C.L. I think it was called, an American company, he would go round maintaining all sorts of big league hardware, tape storage, disc storage, ferrite memory cores, he even maintained some old valve machines.
      I got involved when he bought home an old punch hole tape reader/writer, and I would write little programs in BASIC and then punch the tape which he took to work to run and bring home a print out, I was the envy of my school friends, Ha I had forgotten how it was back then in the late Sixties.

  • @anlberkdelikaya3440
    @anlberkdelikaya3440 Před 5 lety

    Hi John, when we assign same value which is string or integer to two different variable (a = 3 b = 3 or a = 'a'
    b ='a'), their both memory address is same as you explained your video. But if we assign same float value (a = 1.1 b = 1.1) or same list ( a = [1,2] b= [1,2]) to different variables, their id are different. it is indicating that although their value are same , it is produced different object as opposed to integer and string object.
    Is there any special reason for it? If so, could you explain?
    By the way, I always tried to find a mental framework for programming. And only your way of thinking worked out for me. Thanks a lot for your effort and time.

    • @johnphilipjones
      @johnphilipjones  Před 5 lety

      Thank you for your positive comments glad the videos are helping.
      With respect to your question. The following program:
      a = 3.142
      b = 3.142
      print (id(b), id(b))
      gave the following output:
      46381664 46381664
      i.e. the id’s are the same.
      Also the following program:
      a = [1,'I am a string',3.1]
      b = [1,'I am a string',3.1]
      print (id(b), id(b))
      gave the following output:
      44889472 44889472
      Again the id’s are the same.
      Best wishes
      Phil

  • @entirebentirec3296
    @entirebentirec3296 Před 4 lety

    In your earlier videos "Pythons Object Reference" you showed arrow for variable and its refers to object,is it a reference or labelled?

    • @johnphilipjones
      @johnphilipjones  Před 4 lety

      Both of the descriptions I have used are a model that to some extent hides the details of the underlying mechanisms of the language. The use of the label is the more abstract model. The Object reference is the more concrete model and closer to what goes on under the hood of Python. My recommendation is to have an understanding of both models. Under the hood Python dictionaries 'control' access to the objects using a key/value relationship. Best wishes Phil

  • @ericwilliams4028
    @ericwilliams4028 Před 8 lety

    Hi john great video, What is the relevance of the object existing in its own right?

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +1

      Objects encapsulate data and program instructions (i.e. attributes and behaviour(methods)). Encapsulate means grouping the data and instructions together in one entity. A programmer wishing to use the methods of a class only needs to know what methods it offers. The programmer requires no knowledge of the code inside the class (unless they are responsible for writing the class). So a class offers a template of useful behaviours (methods) and attributes (data) and the details of the implementation of the class is hidden. If a programmer wishes to use the methods offered by a class, then they have to create an instance of the class (i.e. an object). The object is then sent messages that invoke the methods inside the object.
      Now let’s say we have a class that defines a bank account (i.e. it has methods to allow for debiting cash from the account, calculating interest on the account balance, crediting the balance by a deposit etc. - it also has attributes such as the customer’s name, customers balance). At a specific time of a month (i.e. the last day of the month) then within a program loop each bank customer has the interest calculated on their bank balance. There is an object for each customer that, for example, holds their balance. This balance can be altered by a method in the object that calculates the interest and then adds the interest to the balance. There will be as many objects saved on file as there are customers in the bank and each of these objects will have the same methods and attributes but the attributes will contain different values e.g. different value for the balance a different customer name etc.
      Every integer variable you use in a Python program is based on the integer class and every integer variable is an instance of the integer class (i.e. integer object). Every float variable you use in a Python program is based on the float class and every float variable is an instance of the float class (i.e. float object). Python is built on objects from the base up and as such everything used is essentially an instance of a class (i.e. an object).
      Returning to the bank customer there needs to be one object for every customer so an object has to exist in its own right one for each customer. If you decided to use a class directly for a customer in code, then it would not be able to hold different values (e.g. different customer names) for each of the customers as there can only be one class for defining the attributes and behaviours of a customer. Remember a class is the template used to define what objects will ‘look like’ and there needs to be one object for each customer i.e. 10,000 customers then 10,000 objects but just one class defining what an object will look like.
      Regards
      Phil

  • @songhualiu4813
    @songhualiu4813 Před 5 lety +1

    very good work! 3Q

  • @MaxGoddur
    @MaxGoddur Před 7 lety +1

    My only questions on this outstanding presentation of "Classes" is when you reference "a" as a label tied to or bound to Object. In tkinter there are numerous references to "label" as it relates to tkinter. Is it possible in you example a more accurate reference to "a" in "a = 2" would have been "a" is a variable? Thank you once again and thank you for your help.
    PS
    My donations will resume in March.

    • @johnphilipjones
      @johnphilipjones  Před 7 lety

      The term label in the context of the video is to support the model I use to describe objects which is different to the use of label within Tkinter. A Python variable is an object often called an abstract data type. You will also often hear a Python variable referred to as typeless. More precisely a Python variable is typeless but its value does have a type.
      Best wishes
      Phil

    • @MaxGoddur
      @MaxGoddur Před 7 lety

      Thank you Phil.

  • @Driftload
    @Driftload Před 6 lety +1

    Really helps visualise some of the structuring of the base classes in Python, in particular putting this documentation: docs.python.org/3/reference/datamodel.html
    in much more understandable format, as it is difficult when learning OOP to visualise how the builtins are all already class objects

  • @joshuajenkins1463
    @joshuajenkins1463 Před 8 lety

    Great video. Why doesn't python use double instead of float?

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +Joshua Jenkins In programming languages programs can represent Integers and Real numbers.
      Real numbers can have fractions whereas Integers by definition do not have fractional parts. In some language, such as Visual Basic, a data type called Double is used to represent values that are Real numbers with a certain precision (i.e. as accurately as possible). In Python a float is the data type that can 'store' values that are Real numbers (again as accurately as possible)
      Phil

  • @hanif2778
    @hanif2778 Před 5 lety

    in minute 11:33 when varriables a and b using same object, is that mean variable a and variable b on the same memory address / refer to same memory location?
    thank you for help

    • @johnphilipjones
      @johnphilipjones  Před 5 lety

      a and b refer to the same object. Objects are kept in dictionaries so a and b refer to the same object in the dictionary.

  • @chome4
    @chome4 Před 5 lety

    Is there a particular sequence in which to view these playlists? After the basic one, I'm looking at which playlist to start on next. I tried this one but it mentions 'ID' and that it's been mentioned in a previous video. Thanks.

    • @johnphilipjones
      @johnphilipjones  Před 5 lety

      I would recommend you view the videos in the order shown on the following page.
      www.pythonbytesize.com/video-list-website.html
      Regards
      Phil

    • @chome4
      @chome4 Před 5 lety +1

      Thanks John....

  • @djamalInfo
    @djamalInfo Před 8 lety +1

    Thank you so much

  • @confidential303
    @confidential303 Před 8 lety

    at 12:05 variable a and b shares the same ID, shouldn't ID be unique regardless of the value it will contain?

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +confidential303 Check out the videos at the links below it should clear up why in this case the ID's are the same. But let me know if they do not and I will answer on text.
      czcams.com/video/rHxC1G03Ck4/video.html
      czcams.com/video/8nMQX0W4_Bo/video.html
      Regards
      Phil

  • @cyborgxxi
    @cyborgxxi Před 7 lety +1

    thanks john

  • @stevefrt9495
    @stevefrt9495 Před 8 lety +1

    thanks you so much

  • @stephenobrien2952
    @stephenobrien2952 Před 8 lety +1

    Excellent

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +Stephen O'Brien Thank you
      Best wishes
      Phil
      (John Philip Jones)

  • @robertng4666
    @robertng4666 Před 5 lety

    for the second line in the code @ (11:26), should it be b = a instead of b = 2 in order for b to have the same ID as a?

    • @johnphilipjones
      @johnphilipjones  Před 5 lety

      Python is different to many other languages. A variable in Python is a name bound to an instance of a class. The program has an instance of the integer class i.e. the 2.
      a = 2 creates an instance of the integer class bound to the name 'a'
      b = 2 binds the name 'b' to the integer instance (2) that already exists.
      Therefore 'a' and 'b' are bound to the same instance and as a consequence have the same id
      Best wishes
      Phil

    • @robertng4666
      @robertng4666 Před 5 lety

      Thank you so much for the explanation, John. I did some trial and error and you are very correct. After I change the value of b to 2, the id's of a and b equal to each other.
      a = 2
      b = 2
      print(id(a))
      print(id(b))
      print(a is b) # True
      print(a == b) # True
      a = b
      print(f'for a==b {a == b}')
      print(id(a)) # a has the same id as b
      print(id(b)) # id for b is unchanged
      print(a is b) # True
      print(a == b) # True
      print(b is a) # True
      print(b == a) # True
      I wonder what the advantage is for bounding two different variables to the same instance of a class. My apology as I am fairly new to Python so the answer is probably very obvious. Thanks.

    • @johnphilipjones
      @johnphilipjones  Před 5 lety

      Takes less room in memory. Best wishes Phil

  • @ley1973
    @ley1973 Před 7 lety

    thanks this is right.but one thing why is A=2 and B=3 called "integer class",and why A=9.81 is called "float class"???? please.

    • @johnphilipjones
      @johnphilipjones  Před 7 lety +1

      The numbers 2 and 3 are examples of integers and therefore are values that are of type integer which means they are `based` on the integer class. 9.81 is a value with a fractional part and is therefore based on the float class.

    • @ley1973
      @ley1973 Před 7 lety +1

      thanks again Mr.

  • @borisrunakov1662
    @borisrunakov1662 Před 9 lety +1

    Thank you ! Does this apply to 2.7 too?

    • @johnphilipjones
      @johnphilipjones  Před 9 lety

      boris runakov Hello Boris, Yes it applies to other versions of Python.
      Best wishes
      Phil
      (John Philip Jones)

    • @DavidTangye
      @DavidTangye Před 9 lety +1

      John Philip Jones - except in python 2... the output of type(...) shows '

    • @borisrunakov1662
      @borisrunakov1662 Před 9 lety

      Thanks for the input !

  • @谢斌-g9b
    @谢斌-g9b Před 7 lety +2

    amazing!subscribe for you :D

  • @qiangyang3265
    @qiangyang3265 Před 7 lety +1

    It's great, from china.

  • @cloccawoerc
    @cloccawoerc Před 8 lety

    Which one is the previous video?

    • @johnphilipjones
      @johnphilipjones  Před 8 lety

      +Ben .Lu The previous video is at the following link:
      www.pythonbytesize.com/video-pythons-id-function-and-names.html
      Regards
      Phil

  • @Harish-ou4dy
    @Harish-ou4dy Před 4 lety

    how do I get the id of a letter in the string?

    • @johnphilipjones
      @johnphilipjones  Před 4 lety

      Use the id() function and pass in the string name with the index position of the character position you wish to know about.
      Best wishes Phil

  • @ko95
    @ko95 Před 4 lety

    Hello John, is execution space = runtime? I cant find your other video on this, do you mind linking me to it??
    czcams.com/video/AaIdperUu-A/video.html "we have seen this before"

    • @ko95
      @ko95 Před 4 lety

      found it in a later video in this playlist: czcams.com/video/kZnaFP9U9nY/video.html

    • @johnphilipjones
      @johnphilipjones  Před 4 lety

      See the video at the following link:
      www.pythonbytesize.com/114-video-a-python-variable-versus-a-python-object.html
      Best wishes Phil

  • @ezzeddinhgden1638
    @ezzeddinhgden1638 Před 10 lety

    Can you do more gimp?

    • @ezzeddinhgden1638
      @ezzeddinhgden1638 Před 10 lety

      Because your tutorials are great ;) you explain very Well, and it is easy to Pick up :)

    • @johnphilipjones
      @johnphilipjones  Před 10 lety

      At the moment I am committed to doing videos on Python but I will be returning to GIMP later in the year. Are there any topics on GIMP that you would like me to cover? Best wishes
      Phil

    • @johnphilipjones
      @johnphilipjones  Před 10 lety

      Ezzeddin Høgden Thank you Best wishes Phil