Python Tutorial 18: Understanding Python Methods and Classes

  Рет қаралды 23,799

Paul McWhorter

Paul McWhorter

3 жыл бұрын

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In this video we show step-by-step instructions on how to understand and use Python Classes and Python Methods. We give sample programs and demonstration code to make this an easy to learn example. We write demonstration code and give examples and solutions. I do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming

Пікірлер: 127
@cesarp1940
@cesarp1940 3 жыл бұрын
This is... by far... the best training video on Classes and Methods out there. Thanks Paul
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Wow, thanks!
@warrenscorner
@warrenscorner 3 жыл бұрын
Boom! Something just clicked in my head. I tried to develop an app for my iPad using Xcode and Swift. Not ever having taken any official programming courses I got lost very quickly. I didn’t understand classes properly and didn’t get this self thing. You can’t learn everything from a book and KZfaq videos. Unless the KZfaq teacher is Paul McWhorter!
@Mouse_007
@Mouse_007 2 жыл бұрын
yep, with Paul we have hope !
@EduardoHernandez-jm1xm
@EduardoHernandez-jm1xm 3 жыл бұрын
I didn't have time to take the class but as every week I expect your lesson Paul, God bless you
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Wonderful!
@marwaneelmajdoub1547
@marwaneelmajdoub1547 Жыл бұрын
My Dear Professor, While watching your Videos I feel myself standing alongside you and having a real-life non-virtual course thanks to your Beautiful way of teaching. I genuinely think that you are the Best Teacher ever who is giving classes on Python. Also, One of the most crucial things you affirm is the Fact of Practicing the knowledge we get from your lessons, few need to think and understand the Problem-Solving process! As of that, We will be filled with Confidence after Figuring out the Solution. MY BIG BROTHER! I HOPE YOU ARE DOING VERY WELL. I WISH YOU A HEALTHY LIFE!
@aseefzahir8789
@aseefzahir8789 10 ай бұрын
I have never EVER had someone teach me OOP in a manner that cemented the concepts. You did that today. I thank you Paul.
@jeantorres3293
@jeantorres3293 2 жыл бұрын
Despite majoring in Mechanical Engineering at UH, I hold your playlists to a much higher regard. I already learned python and C++ but I feel like I'll miss something if I don't watch your videos. You've pushed me into 3D printing, programming, robotics, artificial intelligence, and so much more. Beyond grateful for your videos. Hopefully one day I can pass down my knowledge like you....You don't truly understand something until you can explain it to somebody else as clearly as you do
@cbrombaugh
@cbrombaugh 3 жыл бұрын
I AM LEGEND! It took a while to understand the basics of Classes and Methods, but I managed to complete the homework in one evening.
@Andrew_Ye
@Andrew_Ye 3 жыл бұрын
Working so hard on youtube and barely making youtube money, thank you!
@user-fb7mi5gl3b
@user-fb7mi5gl3b 2 ай бұрын
i was lost without you, paul ... thank you for saving me
@patis.IA-AI
@patis.IA-AI Жыл бұрын
it's crystal clear thanks ,we dont need programmers but teachers like you
@colepdx187
@colepdx187 2 жыл бұрын
that was the quickest 42 minutes on KZfaq (in a good way). Very clear and understandable explanation of classes and methods. Thank you!
@lewismeyer4452
@lewismeyer4452 3 жыл бұрын
Just finished a day's Jury service, great video. Will watch again this weekend, think I finally got classes and methods.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Have fun!
@mor8266
@mor8266 3 жыл бұрын
Congratulations!!! I have been watching KZfaq videos for years and this video is the first that I have ever seen with "0" dislikes. Excellent job Mr. McWhorter!! With respect to many videos watched, many of them didn't deserve the dislikes they received, but some people just have to be haters.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Wow, thank you!
@mor8266
@mor8266 3 жыл бұрын
@@paulmcwhorter NO, thank YOU. I have learned from you Arduino & Raspberry Pi and now, Python. You are an excellent teacher and a wealth knowledge. Thank you so much.
@Omar_Cubing
@Omar_Cubing 2 жыл бұрын
@ISHANT AGARWAL i am happy that they are still 4 not more
@hughpatterson1480
@hughpatterson1480 2 жыл бұрын
This was an extremely helpful video which I will insist my students watch. I really love the way you explain the subject matter and add ideas in as you go along. In the real world, you often have to learn how to modify your code as you're working on it. By that, I mean writing a program and then having to add onto it. Another great lesson. I've really enjoyed doing these lessons and the Arduino lessons even though I teach this stuff. I'm currently going trough your ultrasonic sensor and servo video, which is a brilliant pairing of components. Thanks Paul.
@hendrag8856
@hendrag8856 2 жыл бұрын
I have struggled to learn OOP specifically about the Class and Object in the past few days despite I have watched many videos about these topics BUT after watching this video, I do understand them (Class & Object) clearly. As such, I could say that so far this is the best video about OOP. Thank you very much Paul for such valued video. May God bless you.
@chrisingram7277
@chrisingram7277 3 жыл бұрын
Thanks Paul, this video really helped clarified the whole 'object' class in Python.
@gordonspond
@gordonspond 2 жыл бұрын
Ich bin eine Legende. Thanks Paul for this great class. Back in 1993, I taught myself C++ programming from a book and got into Object Oriented Programming... and then I got married, we had kids and I did very little programming for over 20 years. Kids are now out of college and I am getting back in the game! Really excited about your Arduino and Python classes!
@JimmyWheel
@JimmyWheel 2 жыл бұрын
Paul, you explain class and methods better than anybody else I have come across! Many thanks
@kendrickhuynh7074
@kendrickhuynh7074 9 ай бұрын
Your enthusiasm about coding gives me hope on my coding skills. Also really great tutorial. Thank You.
@vaughntaylor2855
@vaughntaylor2855 2 жыл бұрын
Paul, This was the BEST explanation I have seen on the explanation and relationship between Classes, Methods, Objects and their interaction! Thank You!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Wow, thanks!
@callmerel2809
@callmerel2809 3 жыл бұрын
pls upload all your python vids. I can watch 8 of your videos a day. Can't get enough.
@jaime5199
@jaime5199 2 жыл бұрын
Best OOP lesson I’ve seen to date. Thanks again Paul!
@jstro-hobbytech
@jstro-hobbytech Жыл бұрын
classes are the first thing that makes sense to me syntax wise because the order of operations for creating the class is the same as other languages. i love it. i have the basics down and a file for every example in every lesson and notes for every lesson. this is the best part of being retired in my early 40s.
@afiqrahimrahman4452
@afiqrahimrahman4452 3 жыл бұрын
Paul, you just help me understand Class and Method better. TQ for the explanation
@paulseidel5819
@paulseidel5819 3 жыл бұрын
Good one Paul. I didn't understand the self reference during instantiation in python OOP. Now I do.
@Capn-Coin
@Capn-Coin 2 жыл бұрын
Thanks paul. I have not been able to understand this till now.
@daviddeegan1740
@daviddeegan1740 3 ай бұрын
Absolutely amazing lesson learnt so much !
@pokerface68
@pokerface68 2 жыл бұрын
This really helped me understand classes and methods. I am legend! On to the next video to see how close my solution is to your example! Thank you!
@maku5289
@maku5289 Жыл бұрын
Finished that lesson first thing in the morning for my 8th-day-in-a-row 💥☕ Hitting that h/w next. Thanks for another great lesson
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Great job!
@wilsonlittle4833
@wilsonlittle4833 Жыл бұрын
I noticed the comments below, and I am in full agreement. Your KZfaq style definitely makes me feel like I am working along side of you. Great Training from Arduino, to Python, and Raspberry Pi . I did complete the homework and used a For loop to build each student Object. I'm anxious to see how you worked the problem.
@ottawakravmagaacademy7013
@ottawakravmagaacademy7013 3 жыл бұрын
I AM LEGEND, I completed this lesson on my own. Good refresher on Classes, this is still a concept I have trouble with and this lesson explains it pretty well. I played around with this lesson instead of using different Student objects such as sutdent1, student2, etc... I just used an array to append to my class. I love these lessons and I complete them all every week.
@johnplowright6421
@johnplowright6421 2 жыл бұрын
I'm sure my version is going to be longer and more complicated than your solution but I was able to give myself a BOOM when I worked this out.
@ModernDayWanderlust
@ModernDayWanderlust 2 жыл бұрын
Rewatching this after trying to (and succeeding in) overcomplicating the homework really helped all this click for me. Additional rocket fuel also helped!
@tiberiumihaescu5382
@tiberiumihaescu5382 2 жыл бұрын
Wow, you really made it easy and fun! I had trouble trying to wrap my head around these concepts during highschool. Thanks!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Glad it helped!
@mannatkaur1146
@mannatkaur1146 3 жыл бұрын
Nice one! I liked the way of teaching :-)
@scrappybobbarker5224
@scrappybobbarker5224 2 жыл бұрын
Thank you for the most excellent tutorials Mr. McWhorter.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Thanks for watching!
@nadeemghaffar8531
@nadeemghaffar8531 Жыл бұрын
Thank you indeed, Paul... The concept is very well explained... To me, this topic has always been tricky and I always felt gaps in my understanding of the classes and objects... today all gaps are filled... such quality tutorials are so helpful to slow learners like me. Thanking you again with best regards.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Excellent!
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Thanks!
@bryankohn9660
@bryankohn9660 3 жыл бұрын
I am legend. I have four students with 5 grades each and print Student Name, Grades, Average, High and Low for each student. Everything except the print statements are done in the Student class. I was a little unclear on the assignment regarding if the print statements should be in the class, but that's OK. I know that once I become a real Python programmer, I'll always get 100% clear instructions each and every time.
@robertmurton7373
@robertmurton7373 3 жыл бұрын
This is a very good video. I am beginning to understand Python. thank you Paul
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Glad it was helpful!
@ryansh86
@ryansh86 Ай бұрын
Nice lectures. Very well explained
@TheUnofficialMaker
@TheUnofficialMaker Жыл бұрын
great job and love the reenforcement.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Thanks!
@alfredcalleja450
@alfredcalleja450 Жыл бұрын
Paul you are my "Huckleberry". I'll tell you next tutorial if I can get this to work!!
@paulmcwhorter
@paulmcwhorter Жыл бұрын
I'm your Huckleberry!
@nerdygeek8947
@nerdygeek8947 3 жыл бұрын
Thx Paul
@dzeykop
@dzeykop Жыл бұрын
Sir, thank you! This was a great lesson YOU ARE A LEGEND
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Glad you liked it!
@gregthomas7950
@gregthomas7950 2 жыл бұрын
Thank you, Mr. Mac! Not quite a legend yet, but I'm getting untangled from the lawn chair. :)
@RDKCREATIONS
@RDKCREATIONS 3 жыл бұрын
paul we can use math module for complex math problems and im a legend completed the homework
@ProfQED
@ProfQED 2 жыл бұрын
thank you dear master
@pauivorra1819
@pauivorra1819 3 жыл бұрын
Excellent tutorial, Sir.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Glad you liked it!
@makergc3d
@makergc3d 7 ай бұрын
Although it required several days and reviewing the lesson several times, it's almost scary to think it's making sense. For the moment, I Am Legend!
@paulmcwhorter
@paulmcwhorter 7 ай бұрын
Excellent. This is a little bit of a complex topic, so probably worth reviewing again in a few days. With time, it makes more sense.
@darklightining6412
@darklightining6412 Жыл бұрын
God bless you, sir ❤
@martinc9215
@martinc9215 Жыл бұрын
Thanks!
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Thanks, I really appreciate the support. It means a lot!
@Eva-ye7dn
@Eva-ye7dn Жыл бұрын
I read rectangle too many times now it sounds like a made up word lol! Seriously though thank you for making these lessons available to us they are amazing
@pateekdarnal2256
@pateekdarnal2256 3 жыл бұрын
Thank you sir
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Welcome
@kevingriffin55
@kevingriffin55 3 жыл бұрын
I AM LEGEND. Bryan Kohn, I did the same but I did include my printing in the student class, it might not be the best practice in terms of coding but it saves a lot of repetitive code. I also allow the number of grades for each student to be entered in my input grades method.
@adityaarvind6945
@adityaarvind6945 3 жыл бұрын
Sir , After calling the area method for an object can we directly access area for that object by writing object.area without '()'.
@keithneal7927
@keithneal7927 4 ай бұрын
I have eventually become a legend after finding the faults in my code
@johnvandenberg2445
@johnvandenberg2445 8 ай бұрын
Brilliant
@bassman2162
@bassman2162 2 жыл бұрын
That a made sense to me, but I didn’t understand why you set it the Rectangles method to take another parameter Part of it may be that you are working with rectangles which don’t have a height.
@philippeheyvaert3742
@philippeheyvaert3742 Жыл бұрын
Hello Paul, One question: why didn't you create a print method for all methods in your class? Makes the code a lot cleaner, I think. Best from Belgium -- Philippe
@ryansh86
@ryansh86 Ай бұрын
Nice videos
@bhk5003
@bhk5003 2 жыл бұрын
Hi Paul i hope u are doing well ... I used to do Oriented object programming By C++ i used to make a powerfull programs and secure .... But when i wanted to learn it by Python i faces a problems ... like when we have to create a rectangle for exemple we have to define a fnction called __init__ if we change one letter it wont work so i guess that this oriented object programming in python is limitted we dont have have the concept of private and public so idk.
@InfoAction_
@InfoAction_ Жыл бұрын
Can you calculate a volume by doing.... self.volume = self.length * self.area() where def area(self): self.area = self.height * self.width return self.area ?
@86Carrera911
@86Carrera911 2 жыл бұрын
Question: in the area() method, does "self.area = self.length * self.width" create a member "area" in class Rectangle or could "self.area" be any variable name?
@86Carrera911
@86Carrera911 2 жыл бұрын
I was able to just create a local variable in the method and return it, and it still worked.
@freedomer342
@freedomer342 7 ай бұрын
I struggled with this code for awhile and could not figure it out. i finally caved in and ran it threw chatgpt. apparently i had everything right except for the l and w had to be floated. not sure if its because im using a Python 3.10 on visual code or what. i hope this helps someone else who has the same issue
@jayarrcole5907
@jayarrcole5907 3 жыл бұрын
Hi Paul. Can you help me. I am getting a type error: 'int' object is not callable when i try to print twice the area of myRect1. Below is the code im having, when executing the last line, the error appears. Hope you can help. class Rectangle: #every class need a function in it. def __init__(self,c,l,w): self.color=c self.length=l self.width=w def surfarea(self): self.surfarea=self.length*self.width return self.surfarea def perimeter(self): self.perimeter=2*self.length+2*self.width return self.perimeter def diagonal(self): self.diagonal=(self.width**2+self.length**2)**(1/2) return self.diagonal def volume(self,h): self.height=h self.vol=self.width*self.length*self.height return self.vol myRect1=Rectangle('red',2,1) print('Color is:', myRect1.color) print('Length is:', myRect1.length) print('Width is:', myRect1.width) print('Area is:', myRect1.surfarea()) print('Perimeter is:', myRect1.perimeter()) print('Volume is:',myRect1.volume(10)) print('Area is:', myRect1.surfarea())
@noweare1
@noweare1 2 жыл бұрын
can you call a method from another method ? Trying to get volume from area * height, will not let me do that. Also for homework can we create an array of class student so instead of student1, ..., student5, we have student[0] student[1] etc...
@tommclaughlin5617
@tommclaughlin5617 2 жыл бұрын
Yes students=[ ] students.append(Student("John","Doe")) students[0].inputGrades(5) ...
@jonathanlanders9406
@jonathanlanders9406 Жыл бұрын
I have run into a problem and have not yet found the answer online. I tried to create 2 different print statements of myRect1.area() in two different places. However, it seems that the code will only accept the empty parenthesis the first time I type the code. Every time I need to use myRect1.area() after the first instance, I must drop the parentheses and use just myRect1.area. If I try to place parentheses after all of the myRect1.areas, I this error: "TypeError: 'int' object is not callable". Why is this the case? Here is my code (I placed many pound symbols next to lines of code I believed were important).: #PaulMcWhorter - Python Beginners #Lesson 18: Understanding Python Methods and Classes #by Jonathan Landers #May 22,2023 class Rectangle: def __init__(self, c , l , w): self.color = c self.length = l self.width = w def area(self): self.area = self.length * self.width return self.area def perimeter(self): self.peri = 2 *self.length + 2*self.width return self.perim def diagonal(self): self.diag = (self.width**2 + self.length**2)**(1/2) return self.diag def volume(self, h): self.height = h self.vol = self.length * self.width * self.height return self.vol myRect1 = Rectangle('red' , 2 , 1) myRect2 = Rectangle('blue' , 4 , 2) #Refer to the specific function in the class. Give it the missing parameter. myVol = myRect1.volume(5) ############################# First instance. I placed this here to just use myRect1.area(). All future time I just use myRect1.area . ############################# It is strange, because I do not even use "b" and "a" in the rest of the code. b = myRect1.area() a = myRect2.area() print('') print('myRect1 parameters:' , ' Color =' , myRect1.color , ' Length =' , myRect1.length , ' Width =' , myRect1.width) print('myRect1 Area =', myRect1.area) ##############################################################!!!!! print('For good measure =' , myRect1.area) ###########################################################!!!!! print ('myRect1Vol =' , myVol) print('') print('myRect2 parameters:' , ' Color =' , myRect2.color , ' Length =' , myRect2.length , ' Width =' , myRect2.width) print('myRect2 Area =', myRect2.area) ################################################################!!!!! print('For good measure =' , myRect2.area) ##############################################################!!!!! print ('myRect2Vol =' , myVol)
@premprasad3511
@premprasad3511 2 жыл бұрын
Can you suggest a python book that one can read after listening to your videos and that explains as lucidly as you do ?
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
If there was such a book, would I have needed to make these videos?
@noweare1
@noweare1 2 жыл бұрын
automate the boring stuff and python crash course. Both can be downloaded for free as a pdf.
@lil_muna
@lil_muna 3 жыл бұрын
Just had a very bad arm injury now I cant code until it heals
@maku5289
@maku5289 Жыл бұрын
Only had 15min today. 💥 See you again tomorrow (7-day-in-a-row )✅
@codecage9333
@codecage9333 3 жыл бұрын
I am LEGEND! Now what kind of bells and whistles can we add? Man am I having a blast! :-)
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Very soon we will be learning how to do 3D animations and graphics in python. Then we will bring those animations to life by connecting to an arduino instumented with sensors. I think it is pretty fun stuff.
@HarshCreatives
@HarshCreatives 2 жыл бұрын
I am a Legend
@xuzm
@xuzm 9 ай бұрын
why put parameters into you init methods if you just can put parameters in the methods you create instead?
@daviddirac5942
@daviddirac5942 3 жыл бұрын
I am legend. However I the printGrades output, I also had an extra line with the printout ‘NONE’
@robertbliss1677
@robertbliss1677 Жыл бұрын
I am Legend!
@bryankohn9660
@bryankohn9660 3 жыл бұрын
Question for anyone: At 29:30 why is it not required to return self.height, but it is required to return self.vol?
@littricks3631
@littricks3631 3 жыл бұрын
You can just return as many things you have within your method,for instance,he could've just returned like this "return self.volume,self.height" but then again,he needed to capture that "self.height" out of the class so he would have to write it like this- MyHeight,MyVol=myRect1.volume() becaue you're returning two values and they requires two variables... But then again,The method was to find Volume so printing out the height wasn't relevant at all,so he straight-out returned the volume only... He could very well have written print(myRect1.height) to get thr height
@wishicouldarduino8880
@wishicouldarduino8880 3 жыл бұрын
I'm so far behind....I'm snowed under.😁👍🤖I'm actually a saucer....I need insure lol.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Oh no!
@shardul1480
@shardul1480 3 жыл бұрын
Hello sir , i want to make Arduino all in one car but there are so many input and output connections then how should i manage to do that ? (is using 2 Arduinos is best idea ?)
@smithcza
@smithcza Жыл бұрын
I am legend!
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@sailingskismo
@sailingskismo 4 ай бұрын
I am legend :)
@paulmcwhorter
@paulmcwhorter 4 ай бұрын
LEGEND!
@railcat7083
@railcat7083 2 жыл бұрын
Legendary huckleberry...
@86Carrera911
@86Carrera911 2 жыл бұрын
I am legend.
@yigageorgewilliams8817
@yigageorgewilliams8817 3 жыл бұрын
Hello @Paul, I am working on a helpful hospital project to assist on overwhelmed Doctors at covid frontline in Ugandan hospitals. One tough issue I got is programming though I have a little background. I have a kind request, can I have a private chat/ talk with you if possible? Regards Yiga .
@stephen285
@stephen285 Жыл бұрын
thnks!! say you have a python class with 100 rectangles and their attributes and it all works exactly as it should, then somebody hands you a "python list" of rectangles as strings, the names match the rectangle names in your rectangle class. Then they ask you to run their list in a for loop against your rect class and return the name and attributes for each rectangle. How do you do that? lists are strings and objects in a class are not so you get attribute errors - please save my dumb ass?
@jonathanlanders9406
@jonathanlanders9406 Жыл бұрын
I wanted to be able to do similar things to this as well. So, I started experimenting with my old pickle file from Lesson 15. My student-grade data was listed as a single array in this form: stgrad = [ [student1,grade] , [student2,grade] , ... [student(jth),grade(jth)] ] I originally tried to find a way to create a list like [student1,student 2,...] and then turn those into object names for my data "stgrad". However, this does not work because, as you said, list are not object names. So instead, I created an object and then used my LIST AS PARAMETERS for that object. This looks like: student1 = Student(stgrad[1][0] , stgrad[1][1]). if this does not make sense, look at my full code below. TO ANSWER YOUR QUESTION: Instead of trying to take a person's list of rectangles and run them directly in the code created in class, you need to first create a set of code (either in the same file or another) that turns the list into a set of useful data that can be run in your program. You can then create objects (myRect) that has parameters based upon the data from the list. I hope this helps. #Create class students class Students: def __init__(self, x , y): self.name = x self.grade = y #Import pickle data. import pickle with open('MyPickleFile.pkl', 'rb') as p: #Studend and their grades listed as [ [student1,grade] , [student2,grade] , ... [student(jth),grade(jth)] ] stgrad = pickle.load(p) #This is the number of students that are in the stgrad array. stnum = pickle.load(p) #Create object with parameter from the data in the pickle file. student1 = Students(stgrad[1][0] , stgrad[1][1]) print(student1.name , student1.grade)
@stephen285
@stephen285 Жыл бұрын
@@jonathanlanders9406 Thanks so much for your solution! I just came across it - google/utube didnt notify me. It's almost impossible to search for this issue because of all the false positives. I finally figured out after 10 days that you can use z = ((eval('rect1').attributex) so a loop looks like for x in list : (eval('x').attributex) 'rect1' is the string from the list and it evaluates to rect1 which makes it work like a regular class object because rect1 is already an initialized object, then its simple to grab whatever attribute I want. Anyway thanks Again! your a good man Charley Brown
@chrisb7250
@chrisb7250 6 ай бұрын
I AM LEGEND!!!!!
@paulmcwhorter
@paulmcwhorter 6 ай бұрын
LEGEND!
@davidschnider1297
@davidschnider1297 Жыл бұрын
I think I am legend. .. I have a solution for 1 Student... using a Class for Student and Methods as directed... and calling the Methods to print the students first and last name, enter the student's grades, print out the grades , calc the ave, calc the Hi and Lo ( 1 Method returns both ) .. all well and good.. but , now for a 2nd student... I imagine you would just duplicate the calls changing student1 to studentn, where n are the subsequent students... lets see how Sir Paul did it...
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Excellent
@irethoronar34
@irethoronar34 3 жыл бұрын
Paul, actually we are not believing the same gods. But I hope you will be rewarded by my god too.
@duckdontstop1325
@duckdontstop1325 3 жыл бұрын
Wow I’m actually first
@Lehibob
@Lehibob 2 жыл бұрын
Thanks for these Paul! Here is my homework for this lesson: It is found at : kzfaq.info/get/bejne/aa1letujyMWmdYk.html
@user-fb7mi5gl3b
@user-fb7mi5gl3b 2 ай бұрын
Python Tutorial 19: Python Classes and Methods Homework Examples
57:57
Python Tutorial 20: Understanding Python Threads and Threading
30:56
Paul McWhorter
Рет қаралды 18 М.
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 30 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
Python Tutorial 7: Understanding Compound Conditionals in Python
23:05
Python OOP Tutorial 4: Inheritance - Creating Subclasses
19:40
Corey Schafer
Рет қаралды 1,3 МЛН
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46
Nuclear Engineer Reacts to Animation Vs. Geometry by Alan Becker
16:05
T. Folse Nuclear
Рет қаралды 15 М.
Python 3D Graphics Tutorial 4: Understanding 3D Graphic Parameters
32:16
Bill Gates Reveals Superhuman AI Prediction
57:18
Next Big Idea Club
Рет қаралды 32 М.
Arduino Uno R4 WiFi LESSON 12: Read Analog Voltages on the Arduino
41:09
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,2 МЛН
💅🏻Айфон vs Андроид🤮
0:20
Бутылочка
Рет қаралды 740 М.
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 972 М.