Every Python Function Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024

ความคิดเห็น • 116

  • @TechWithTim
    @TechWithTim  ปีที่แล้ว +7

    Checkout part 2: th-cam.com/video/wsETdTd1rp8/w-d-xo.html

    • @Vertig_Pro
      @Vertig_Pro ปีที่แล้ว

      you forgot "def"

    • @rachidjannane9122
      @rachidjannane9122 ปีที่แล้ว +1

      Can you put your examples online so we can copy it and take it as a reference for as

  • @johnnytoobad7785
    @johnnytoobad7785 ปีที่แล้ว +62

    This is by far one of the most useful Python vids made by anybody. EVER.

    • @Nabajyoti_Falls
      @Nabajyoti_Falls 8 หลายเดือนก่อน

      Thanks to anybody

    • @ElYaX0573
      @ElYaX0573 2 หลายเดือนก่อน

      POV: bro code's videos

  • @Mutual_Information
    @Mutual_Information ปีที่แล้ว +37

    The description tells the truth. I've been coding in Python for almost 8 years and I didn't realize float("1e-003") works - cool stuff!

  • @pawelzny
    @pawelzny ปีที่แล้ว +11

    I would not compare objects using the id() function. You can do it by comparing if a is b instead of if a == b. The "is" operator uses id() function underneath. Great video Tim!

  • @FabianEckert99
    @FabianEckert99 ปีที่แล้ว +8

    Great Video!
    Small correction / clarification:
    int() isn't always math.floor(), that is only true for positive numbers.
    For negative numbers, math.floor(-1.2) would round down and therefore return -2 whereas int(-1.2) cuts off the decimal part and returns -1
    In essence, int(positive) is math.floor(), int(negative) is math.ceil()

  • @ameerhamzakhan8054
    @ameerhamzakhan8054 ปีที่แล้ว +8

    You just reduced many person's countless visits to stack overflow 🙃
    Keep the good videos coming !!

  • @paulfragemann3333
    @paulfragemann3333 ปีที่แล้ว +24

    Complex numbers aren't only used in Physics. They're a mathimatical concept, a complex number describes a point on a plane using 2 coordinates and uses the imaginary number i with i² = -1, as the second axis, so you can write any complex number in the form a + bi with a and b being Real Numbers. Python uses j instead of i to not confuse people with the common name for iteration variables.
    Complex Numbers are also used in Physics but atleast in my experience you'll be using Vectors (which is another math concept of Numbers on a n-Dimensional Plane) more often than Complex numbers.
    If there are any mistakes in here, please correct me in the answer ;)

    • @Vforsucuk
      @Vforsucuk ปีที่แล้ว +4

      I would like to add that j is also used in electrical engineering instead of i as i is used as a symbol for current.

    • @paulfragemann3333
      @paulfragemann3333 ปีที่แล้ว

      @@Vforsucuk Didn't know that ;) Nice to know but isn't current uppercase I if I remember correctly?

    • @noahmarosok8168
      @noahmarosok8168 ปีที่แล้ว +2

      @@paulfragemann3333 yes but also in certain situations with circuit analysis you can use both (interchangeable as far as I know). So "i" can represent some current given in a circuit. In general j is just used to completely avoid the confusion.

    • @paulfragemann3333
      @paulfragemann3333 ปีที่แล้ว

      @@noahmarosok8168 yeah confusion avoiding is good.

    • @mittunsudhahar634
      @mittunsudhahar634 ปีที่แล้ว

      @@paulfragemann3333 I believe when you have a time-dependent current (an AC current for example) you often use i(t) rather than the capitalised version.

  • @foadchode
    @foadchode ปีที่แล้ว +5

    "Oh, you like Python? Explain every Python function."

  • @meraklmuskulpesent8313
    @meraklmuskulpesent8313 ปีที่แล้ว +5

    This is one of the most useful Python videos I've ever watched. Thank you.

  • @high_lag
    @high_lag ปีที่แล้ว +2

    I appreciate this video but "I won't go through this because it's too advanced" isn't helpful. Again thanks, overall it's good and I appreciate it. I was just hoping for an explanation on ALL of the functions, especially the advanced ones. Maybe make a separate video where you explain the advanced functions that were passed over?

  • @Zmunk19
    @Zmunk19 ปีที่แล้ว +1

    15:40, you don't need to use the 'float' function to use scientific notation. you can use 1e-003 directly

  • @fantaguyrealx
    @fantaguyrealx ปีที่แล้ว +113

    Whoever's reading this, i pray that whatever you're going through gets better and whatever you're struggling with or worrying about is going to be fine and that everyone has a fantastic day! Amen

    • @Anutechtrwebgodz
      @Anutechtrwebgodz ปีที่แล้ว +3

      I actually needed that thanks. Hopefully today gets better.

    • @hamzaomar570
      @hamzaomar570 ปีที่แล้ว +2

      Thanks man likewise

    • @frfrongong9712
      @frfrongong9712 ปีที่แล้ว +3

      Thanks bro you too. We got this guys

    • @MrJu504
      @MrJu504 ปีที่แล้ว +2

      Thank you I needed to hear that.

    • @Krrxhzy
      @Krrxhzy ปีที่แล้ว

      Amen

  • @paulfragemann3333
    @paulfragemann3333 ปีที่แล้ว +3

    At 17:36 you tell us something about hasattr whilst the youtube chapter and Description shown on Screen is about hash() which you completely miss.
    If I were you I would fix the TH-cam Chapter and then do hash at the beginning of Part II.

    • @TechWithTim
      @TechWithTim  ปีที่แล้ว +1

      Good call, thanks for pointing that out 👍

  • @jarlschetalim7529
    @jarlschetalim7529 ปีที่แล้ว

    b = []
    a = ['A', 'B', 'C', 'D']
    for index, value in enumerate(a, start=1):
    a = [(value, index)]
    b = b + a
    b = dict(b)
    print(b)
    I didn't understand this block of code in slot_machine project, but now I understand!

  • @JakeAnthrax420
    @JakeAnthrax420 ปีที่แล้ว +5

    Nice Video Tim. please Make videos about data structure! 👍🏿

  • @maskedman4003
    @maskedman4003 ปีที่แล้ว +1

    According to the python docs and stuff, your Iterator `__iter__` method should only conventionally return `self`, but you're changing the state of the iterator which may cause bugs.

  • @xja90x
    @xja90x ปีที่แล้ว +1

    I like watching your videos but I don’t understand most of it lol. What’s a best place or where can I start to learn and self learn programming/coding. I just don’t know where to start as a beginner and work my way up. Awesome videos tho!

  • @neonsilver1936
    @neonsilver1936 ปีที่แล้ว

    just noticed at 9:50 , "complex()" shows up on the top when "delattr()" should be there. Don't know if the error extends past this moment, but saw it and wanted to alert you to it. Will edit if I find more while taking notes.

  • @rajadebnath2268
    @rajadebnath2268 ปีที่แล้ว

    It's too advance for me I'll come back after a week or so , thx Tim u are the best

  • @matt-xq1xv
    @matt-xq1xv ปีที่แล้ว

    Thank you for being my computer science teacher since my professor doesn’t want to be ❤

  • @KamyanYT
    @KamyanYT ปีที่แล้ว +2

    this video is awesome!! keep up the great work 👍

  • @anthonylannes6937
    @anthonylannes6937 ปีที่แล้ว +1

    Nice video Tim, it's cool and useful to have some explanations and examples on those built-in functions

  • @Daviesdev
    @Daviesdev ปีที่แล้ว

    In the beginning where you said you guarantee I learn something new, I knew it wasnt a bluff. Keep up the good work tim!!!

  • @INTEDAI
    @INTEDAI ปีที่แล้ว +1

    That's a really useful video, thanks!

  • @doublex7223
    @doublex7223 ปีที่แล้ว

    Thanks for sharing.Please share more and more for the learners.

  • @ivannuzhyn4668
    @ivannuzhyn4668 ปีที่แล้ว +1

    Very usefull, thanks!

  • @adamstrejcovsky8257
    @adamstrejcovsky8257 ปีที่แล้ว

    i am a simple man. Tim uploads a video, I watch it.

  • @Fl0kii_
    @Fl0kii_ ปีที่แล้ว +1

    Love the Python content, keep it up ❤‍🔥

  • @Zmunk19
    @Zmunk19 ปีที่แล้ว

    at 9:50 you're explaining 'delattr' but the hint at the top right says 'complex ([real[, imag]])'

  • @danielvickers9401
    @danielvickers9401 ปีที่แล้ว

    Well you found yourself a new subscriber! Awesome explanations and in depth video!
    By chance I looked over your github, do you have those uploaded for a download as I didn't see it at first glance.

  • @Tinubu69
    @Tinubu69 2 หลายเดือนก่อน

    So useful thx

  • @jarlschetalim7529
    @jarlschetalim7529 ปีที่แล้ว

    I just randomly come up with this alphabetic triangle by testing chr():
    alphabet_big = []
    alphabet_small = []
    A = 65
    Z = 90
    a = 97
    z = 122
    for _ in range(A, Z+1):
    alphabet_big.append(chr(_))
    print(alphabet_big)
    for _ in range(a, z+1):
    alphabet_small.append(chr(_))
    print(alphabet_small)
    for _ in reversed(range(a+1, z+1)):
    alphabet_small.remove(chr(_))
    print(alphabet_small)

  • @AssemblyWizard
    @AssemblyWizard ปีที่แล้ว +1

    9:41 "I'm not a physics guy"
    15:10 "-9.8"
    Hmmm

  • @sanunitwaibu529
    @sanunitwaibu529 10 หลายเดือนก่อน

    hello...your tutorials are extraordinary. can you please create a tutorial on python built-in functions(all built in functions there are 71). i hope you will work on it. thank you.

  • @Tushya01
    @Tushya01 ปีที่แล้ว

    not know , but just know you've affected my life, and apparently tens of thousands of others, in an imnsely positive way. Thank you

  • @dclxviclan
    @dclxviclan ปีที่แล้ว

    Thanks for awesome lesson

  • @jstro-hobbytech
    @jstro-hobbytech ปีที่แล้ว +1

    One question Tim. Did you do this video all in one breath? Haha cool video. Coming from a c++ background I don't find any of this hard. It's just hearing about or seeing the name. Awesome video brother thanks

    • @TechWithTim
      @TechWithTim  ปีที่แล้ว +2

      I record each mini section at a time then just splice it all together 👍

    • @jstro-hobbytech
      @jstro-hobbytech ปีที่แล้ว

      @@TechWithTim it was great. I went back and took notes

  • @technovida1
    @technovida1 ปีที่แล้ว

    Another good one from Tim

  • @Nathan-ng1kp
    @Nathan-ng1kp ปีที่แล้ว

    Tim is surely working on part 2 this very moment

  • @sulai2279
    @sulai2279 ปีที่แล้ว

    19:30 why aren't 'a' and 'b' identical? if it were a mutable object you could mutate 'b' and 'a' will mutate aswell

  • @albertofortrivera5390
    @albertofortrivera5390 ปีที่แล้ว

    very good tutorial . very clean . i am happy you didn't start digging deep into any specific feature - sotNice tutorialng that happens to too many

  • @allthingstechy
    @allthingstechy ปีที่แล้ว +1

    Really nice 👍

  • @lancemarchetti8673
    @lancemarchetti8673 ปีที่แล้ว

    Awesome Tim!

  • @SkyFly19853
    @SkyFly19853 ปีที่แล้ว

    Truly informative.

  • @xynyde0
    @xynyde0 ปีที่แล้ว

    Hello TIm! When are you gonna resume the rust tutorial series? Is it done?

  • @akutahu7677
    @akutahu7677 ปีที่แล้ว

    Super as usual 👍

  • @beethovennine
    @beethovennine ปีที่แล้ว

    Yeah, another vid! Awesome...

  • @joshl3643
    @joshl3643 ปีที่แล้ว

    Good stuff! 👍

  • @KamaAmmo
    @KamaAmmo ปีที่แล้ว

    you are the best senpai!

  • @furioniasignition2546
    @furioniasignition2546 ปีที่แล้ว

    What’s the colour theme?

  • @codeavecwinner
    @codeavecwinner ปีที่แล้ว

    Cool,thank you

  • @hdumtflncehennemi6291
    @hdumtflncehennemi6291 ปีที่แล้ว

    most likely, paying for soft gives you rights to use anytNice tutorialng included with your purchase as well as whatever the distibution rights of any tNice tutorialrd

  • @fmictsang8874
    @fmictsang8874 ปีที่แล้ว

    This is useful.

  • @MARKOTHEDEV
    @MARKOTHEDEV ปีที่แล้ว

    nice one Tim

  • @jordymaryns4945
    @jordymaryns4945 ปีที่แล้ว +1

    Also you put info about hash() on the hasattr function and forgot to add hash() function in the video (there is no hash.py)

  • @moumnalmunawy1806
    @moumnalmunawy1806 ปีที่แล้ว +1

    Will you continue rust?

  • @dineshkrishnasamy1628
    @dineshkrishnasamy1628 ปีที่แล้ว

    hi. what do you think about no code low code?
    and if it's future, what about developer's job opportunities? thanks

    • @jeroenvermunt3372
      @jeroenvermunt3372 ปีที่แล้ว

      In my opinion (I'm not an actual (senior) developer, but a junior data scientist) low code will always lag behind actual coding. Python is already a "low-code" type of coding compared to higher level languages such as C, and it will always be easier to maintain, upgrade and keep up to date as low/no code applications. However, low code will be super useful for making quick apps with no technical background, and it will get rid of developers who "picked up" on a little bit of html/css charging ridiculous amount for crappy websites (so pretty much low quality coding), but skilled developers can develop apps with code just as quick as low-code apps can, with a lot more higher maintainability and flexibility.
      In short, high-skilled developers have nothing to fear, but the skill floor will become higher, because as a new or low-skilled coder it becomes increasingly difficult to beat low/no-code

  • @jasontan1981
    @jasontan1981 ปีที่แล้ว

    I not watch yet but like first 😆
    Watch later 😁😁

  • @DrDeuteron
    @DrDeuteron ปีที่แล้ว

    doesn't bin() bind to dunder index()?

  • @QueryTuner
    @QueryTuner ปีที่แล้ว

    @TechWithTim: Please tell what is that for oval rotating black device in the background ?

  • @Empathywastaken
    @Empathywastaken ปีที่แล้ว

    9:49 theres a mistake, regardless tis an epic video thank you so much

    • @chesschad81
      @chesschad81 ปีที่แล้ว

      Where?

    • @chesschad81
      @chesschad81 ปีที่แล้ว

      Oh, you mean the misplaced bracket?

    • @Empathywastaken
      @Empathywastaken ปีที่แล้ว

      @@chesschad81 no, the entire title is wrong

    • @chesschad81
      @chesschad81 ปีที่แล้ว +1

      @@Empathywastaken Oh, wow.

  • @tcgvsocg1458
    @tcgvsocg1458 ปีที่แล้ว

    cool thx a lot

  • @cacavieja55
    @cacavieja55 ปีที่แล้ว

    lol abs... i thought these functions would solve my life issues

  • @DanielMaldonado950
    @DanielMaldonado950 ปีที่แล้ว

    Can you still make money programming? Ai codes for us now

  • @sorandom2028
    @sorandom2028 ปีที่แล้ว

    Everyone thinks I'm a cheating student but I'm just a self learning dude in Nigeria...
    Tim help!
    You'll need to write a function, the function will take a string argument, and will tell the user which characters appeared successively, how many times it appeared and the maximum repetition.
    For example, if the argument is "Hello Timmy!!! A better day awaits... brrr!!!"
    Then your function should output:
    Repeated characters:
    l
    m
    t
    r
    !
    Occurrence: l = 1, t = 1, r = 1, ! = 2
    Degree of repetition: l = 2, t = 2, r = 3, !=2

  • @marmaladetoast
    @marmaladetoast ปีที่แล้ว

    __abs__ not ABC

  • @POWERSID17
    @POWERSID17 3 หลายเดือนก่อน

    you haven't explained the codes.... how and when to use other codes.... 😕

  • @adityapunetha6606
    @adityapunetha6606 ปีที่แล้ว

    where is next()

  • @jordymaryns4945
    @jordymaryns4945 ปีที่แล้ว

    You forgot a time marker for delattr

  • @piotrmazgaj
    @piotrmazgaj ปีที่แล้ว

    I dear you to do a film about all __dunders__ ; )

  • @qanaqadirbro9555
    @qanaqadirbro9555 ปีที่แล้ว

    👍

  • @BerkantAtici
    @BerkantAtici ปีที่แล้ว

    rarp

  • @emmanuelodebiyi8305
    @emmanuelodebiyi8305 ปีที่แล้ว

    I’ve used Pro Tools, Ableton and GarageBand/Logic and soft is pretty confusing compared so thanks for tNice tutorials vid. It’s not as confusing as

  • @rasi123ful
    @rasi123ful ปีที่แล้ว

    To anyone who saw comnts about torrenting it, I would strongly advise against doing that. Pirating a DAW can be a huge fine. Not

  • @thedevhassan
    @thedevhassan ปีที่แล้ว

    OP

  • @BruceDuncan
    @BruceDuncan ปีที่แล้ว +1

    Disappointed you didn't show the result of "callable(callable)"

  • @drengr2462
    @drengr2462 ปีที่แล้ว

    Wow you look like me bruh, have we been twin before, did ma bring u forest to lose

  • @emmanueloluoch1982
    @emmanueloluoch1982 ปีที่แล้ว

    love you men

  • @markcuello5
    @markcuello5 ปีที่แล้ว +1

    SECURITY

  • @bananacraft69
    @bananacraft69 ปีที่แล้ว

    eval()

  • @mohsinfareed1797
    @mohsinfareed1797 ปีที่แล้ว

    Thanks . But you speak very quickly. It hard for me to follow. I am not English mother tongue

  • @kajekage9410
    @kajekage9410 ปีที่แล้ว

    No p2?

  • @HusamEmran
    @HusamEmran ปีที่แล้ว

    what are you doing ?!! the way you explain is showing you don't know whats going on . ex. hasattr() FANCTION how X is in C and Y isn't !! @17:40