Комментарии:
Excellent material, helping me grow.
ОтветитьThis is what I came for functions, objects, and classes.
ОтветитьThank you so much for toturials🙏🙏🙏
ОтветитьThank you Mr.Schafer
ОтветитьThis is how a beginner's course should be. Fast, clear and straight to the point with no new or confusing stuff that leaves one hanging. People would pay for your videos on a source like UDEMY and as a person living in a country with no online payment possibility I seriously appreciate you work. And the fact that it's actually an Englishman teaching the course is just cherry on top. Cheers Mr.Schafer.
ОтветитьPlease increase the font size or atleast zoom in. Literally can't see anything which is super annoying.
Ответитьtoo tiny
ОтветитьCan't imagine I actually understand it, thank you for your great teaching
ОтветитьThank you, Corey. Every time I search on something about python, I hope I find a tutorial from you. You are the best.
ОтветитьIn: def hello_func():
return 'Hello Function.'
hello_func()
Out: 'Hello Function.'
Why Jupyter Notebook returning value , and this is not supposed to. but Sublime does follow your out put.
"Its not important you understand how a leap year is calculated" Zybooks expects you do know the equation in a lot of instances, which makes it harder to understand how to get to said outputs. Your videos have helped as a refresher as I'm at the end of my python course. I get most of it, I can't write it to save my life. I hope after watching these videos, I'll be able to churn out code easier from word problems I've been presented with. Thank you for for these lessons.
ОтветитьOnce he started going into the args and kwargs, and talking about the whole leap year thing, he completely lost me. Felt more like it was dragging on and on with lots of technical rambling.
ОтветитьYour lessons are comprehensive. Your instructions are thorough and exact. Your lectures clear up misunderstandings and create clarity. Each of your videos demonstrates your sincerity and absolute passion to educating! I must commend you. Please take a bow... Mr. Corey, please
ОтветитьYou completely lost me.
ОтветитьThis is what i was looking for. thanks for the tutorial.
ОтветитьThis was the best explanation of the *args and **kwargs parameters I've ever heard. Many, many, many thanks for your videos.👏👏👏👏👏
Ответитьthanks for such a good python tutorial ❤
ОтветитьAll the previous videos, everything was crystal clear and so good! Then halfway through this video, everything went downhill. LOL! I copied the leap year code and it worked fine, but when I added that print line like you did and the year/month, it errored out with a "syntax error" complaining about """Return true for leap years, False for non-leap years.""" ....UPDATE: Turns out I'm getting the error in Pycharm, but when I ran it on IDLE, it works fine (found out asking chatGPT why I was getting that error. LOL)...UPDATE2: Okay, problem is with me. I had used my .py file in Pycharm to take notes, thinking """ """ is used to comment multiple lines, which worked fine previously, but it apparently conflicts when I use your code which also contains """ """. Moving the code to it's own .py file ran fine.
ОтветитьVery informative and exciting. Thanks
ОтветитьThis is probabely the best Python tutorial I've ever watched. Thank you so much.
ОтветитьIn one point in my program when using a function with print i will get the following: at 0x7f79d0635f70. What does this mean?
Ответитьhey man great tutorial, but i would've appreciated it more if the font was bigger.. or if you could've zoomed in some. Thanks
ОтветитьSo I am playing around with this example, and I want it to print 'yes' when it is a leap year and 'no' when it is not. It is printing 'yes' alright when I input 2020, but it is giving me no of days 28 for February 2020 instead of 29. Any body knows why?
month_days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
def is_leap(year):
if year % 4 == 0 and (year % 100 != 0 or year % 400 == 0):
print('Yes')
else:
print('No')
def days_in_month(year, month):
if not 1<= month <=12:
return 'Please enter a valid month'
if month == 2 and is_leap(year):
return 29
return month_days[month]
print(days_in_month(2020,2))
When I run the code I get:
Yes
28 ---> Should be 29
Best tutorials for simple reason:
topic is nailed by explaining core of the concept and proving an example that needs a 'light-bulb' in order to be solved
This part right here, especially the meaning of 'return' is a point I often got stuck on during my previous attemps at learning python. But I understand it incredibly clearly right now.
ОтветитьBoy, am I lost...LMAO. 🤣🤣🤣
ОтветитьNo no no no
ОтветитьBro, I watched several tutorials but no one dived into args and kward before at this point except you. This channel should be saved at any price
ОтветитьYou explain much more detail than Mike's video, I have so many question after I watched his video.
Ответитьslow down chief
Ответитьim pretty sure def = define because you're defining a function
Ответитьjust finished this 20 min lecture in 1 hour , your each word contains so many information that is way beyond the expectations ,
Thanks a lot Sir for teaching function
Thanks
ОтветитьOne of the best explanations Ive seen so far easily
Ответитьvery clear. thank you very much
ОтветитьHonestly the way those of statements are set up gets me confused
ОтветитьHi Corey, I’m learning Python and my lecture has a habit of making simple things hard, I’ve watched two of your videos and been able to get up to date, and you have managed to give me more depth and detail in 30 minutes where as I have had 2 hour classes and come out confused. Keep the videos coming they are a real benefit to people new to Python.
Ответить# Number of days per month. First value placeholder for indexing purposes.
month_days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
def is_leap(year):
# Return True for leap years, Flase for non-leap years.
return year % 4 == 0 and (year % 100 !=0 or year % 400 == 0)
def days_in_month(year, month):
# Return number of days in that month in that year.
if not 1 <= month <= 12:
return 'Invalid month'
if month == 2 and is_leap(year):
return 29
return month_days[month]
2022
ОтветитьYou said that parameters are local don’t effect anything outside of the function. That’s incorrect sir. If you pass a list to a function and make changes to it within the function it will also effect the list that was originally passed. Decent video 6.5/10. You jumped into some advanced stuff without covering the basics
Ответитьwow!!!😯 Man, your explanation is really above the average.
Ответитьsolved it :)
def hello_func():
print('Hello Function')
x = 0
while x < 4:
hello_func()
x += 1
Hello Corey, Yes, you are a born teacher. Indeed your explanation is thorough and very very clear. I have one question about that function that you call four times. Is it possible to call that function four times in a loop?
ОтветитьCorey is GOAT 🐐 can’t thank you enough for such an amazing content please comeback to upload new content
Ответить