The Python Dude
The Python Dude
  • Видео 36
  • Просмотров 70 635

Видео

Break and continue keywords mean in Python? #coding #programmingBreak and continue keywords mean in Python? #coding #programming
Break and continue keywords mean in Python? #coding #programming
Просмотров 616День назад
Break and continue keywords mean in Python? #coding #programming
I found hidden function in Python!! #pythontips #codingI found hidden function in Python!! #pythontips #coding
I found hidden function in Python!! #pythontips #coding
Просмотров 1,4 тыс.2 дня назад
I found hidden function in Python!! #pythontips #coding
Safely Get Values from a Dictionary in Python #python #programming #codingSafely Get Values from a Dictionary in Python #python #programming #coding
Safely Get Values from a Dictionary in Python #python #programming #coding
Просмотров 4 тыс.4 дня назад
Safely Get Values from a Dictionary in Python #python #programming #coding
Python vs C++ Speed Comparison #programmingPython vs C++ Speed Comparison #programming
Python vs C++ Speed Comparison #programming
Просмотров 8055 дней назад
Python vs C Speed Comparison #programming
How to confuse a Python developer? #pythonprogrammingHow to confuse a Python developer? #pythonprogramming
How to confuse a Python developer? #pythonprogramming
Просмотров 4,6 тыс.7 дней назад
How to confuse a Python developer? #pythonprogramming
*ARGS in Python?? #python #coding #programmingtips*ARGS in Python?? #python #coding #programmingtips
*ARGS in Python?? #python #coding #programmingtips
Просмотров 7958 дней назад
*ARGS in Python?? #python #coding #programmingtips
Python **KWARGS Explained! 🚀 #Python #CodingPython **KWARGS Explained! 🚀 #Python #Coding
Python **KWARGS Explained! 🚀 #Python #Coding
Просмотров 8799 дней назад
Python KWARGS Explained! 🚀 #Python #Coding
*Args and **Kwargs in Python*Args and **Kwargs in Python
*Args and **Kwargs in Python
Просмотров 12910 дней назад
Confused about *args and kwargs in Python? Let’s clear it up! In this video, you’ll learn: ✅ The magic of the asterisk (*) operator for unpacking lists ✅ How to handle an undefined number of function arguments with *args ✅ What kwargs does and how it manages keyword arguments With easy-to-follow examples, we’ll explain how to make your Python functions more flexible and powerful. By the end of ...
Unlocking a Cool Feature of enumerate() in Python #learnpython #codingUnlocking a Cool Feature of enumerate() in Python #learnpython #coding
Unlocking a Cool Feature of enumerate() in Python #learnpython #coding
Просмотров 7 тыс.11 дней назад
Unlocking a Cool Feature of enumerate() in Python #learnpython #coding
Do You Know This Hidden Trick with Python F-Strings?Do You Know This Hidden Trick with Python F-Strings?
Do You Know This Hidden Trick with Python F-Strings?
Просмотров 8 тыс.12 дней назад
Do You Know This Hidden Trick with Python F-Strings? #pythonlearning #pythontips
Swap Two Numbers in Python with Just ONE Line! 🤯 #pythontipsSwap Two Numbers in Python with Just ONE Line! 🤯 #pythontips
Swap Two Numbers in Python with Just ONE Line! 🤯 #pythontips
Просмотров 54913 дней назад
Swap Two Numbers in Python with Just ONE Line! 🤯 #pythontips
Python Classes in 3 Minutes!Python Classes in 3 Minutes!
Python Classes in 3 Minutes!
Просмотров 21314 дней назад
Want to master Python classes in just 3 minutes? 🚀 In this video, we’ll break down: ✅ What Python classes are and how they work ✅ How to create a class and initialize objects with attributes ✅ Adding functionality with methods to make your objects even more powerful This step-by-step tutorial makes Python classes simple and beginner-friendly. By the end, you’ll understand how to use classes to ...
Create a QR Code in Just 4 Lines of Code! #python #learnpythonCreate a QR Code in Just 4 Lines of Code! #python #learnpython
Create a QR Code in Just 4 Lines of Code! #python #learnpython
Просмотров 1,4 тыс.15 дней назад
Create a QR Code in Just 4 Lines of Code! #python #learnpython
Python Project For Beginners #pythonPython Project For Beginners #python
Python Project For Beginners #python
Просмотров 55616 дней назад
Python Project For Beginners #python

Комментарии

  • @weho_brian
    @weho_brian 8 часов назад

    next video: how to write an operating system in 3 lines

  • @karthikeyans3278
    @karthikeyans3278 14 часов назад

    Everyone know about extend method

  • @defancerus
    @defancerus 19 часов назад

    And may be stop using dictionaries for such data structures, and use dataclasses instead?

  • @NoHandle167
    @NoHandle167 День назад

    Hey man an error isn't that bad. Maps in C++ insert that automatically if the key doesn't exist 🤣😆😆

  • @Dinesh-x5j
    @Dinesh-x5j День назад

    Haha, I found it

  • @xxmsdxx
    @xxmsdxx 4 дня назад

    Since you didnt put comma its considered a part of the string that is before it And if u try to print my_list[3] Result will be twitterreddit

  • @samuelallen1402
    @samuelallen1402 4 дня назад

    Well, if I created the dict in the first place, then I am going to use the first method because I want it to break there, not dump a useless message to a log file and try to run without the data it needs to work. Secondly, if it was an optional key, not sure why I might allow that, but ok, let's say I did, if it's 'not available' then my message would say 'location is not available', so I would at least know what wasn't available. Using this is going to end up making the code even more fragile because you have now introduced multiple ways for the function to return none and you don't know the cause, if location simply was not set, then your get would also return none, because that's the value of location, bro.

  • @Chuen666
    @Chuen666 5 дней назад

    Same as for-loop

  • @nicodemus6918
    @nicodemus6918 5 дней назад

    Depending on the optimization level of the C++ compiler, it may have completely removed the for loop, since the i variable is never used

  • @mariusfrodo6057
    @mariusfrodo6057 5 дней назад

    imao, py is interpreted, and C++ is compiler before the run or start your program, the project was build

  • @OfficialGlober
    @OfficialGlober 5 дней назад

    hey why tf are you edditing in the terminal i thought it was some downgraded vi and vim but no i guess

  • @AzahelMenberu
    @AzahelMenberu 5 дней назад

    It's because in Python and almost any other programing language and computers START COUNTING FROM 0 NOT FROM 1!!!

    • @raphralaikoa8296
      @raphralaikoa8296 4 дня назад

      So you assume if a list has only one element in it, its length should be 0?

  • @Timeless56_No.256_a
    @Timeless56_No.256_a 5 дней назад

    Instagram just isn't good enough to get counted on the list

  • @amarjityadav-j2t
    @amarjityadav-j2t 5 дней назад

    Because you fogot a comma

  • @Asifuzzaman-u1x
    @Asifuzzaman-u1x 6 дней назад

    Between Twitter and reddit there will be ","

  • @joshuadepanes1413
    @joshuadepanes1413 6 дней назад

    Forgot the last comma

  • @TheTerraherts
    @TheTerraherts 6 дней назад

    You can't confuse python, it confuses you

  • @MrDsa04
    @MrDsa04 6 дней назад

    Bro thinks we won't notice the comma

  • @ikshitagarwal590
    @ikshitagarwal590 6 дней назад

    That is why i hate python, The debugging would take hours on this shi

  • @prakashraj4519
    @prakashraj4519 6 дней назад

    You forgot comma, and it concatenates the strings

  • @qasimUzumaki
    @qasimUzumaki 6 дней назад

    twitter and reddit are one word cuz of no comma so it thinks its one word

  • @pradeepsingh-bu8gw
    @pradeepsingh-bu8gw 7 дней назад

    You forgot 1 comma

  • @Ranganathan.P-l1q
    @Ranganathan.P-l1q 7 дней назад

    Because after "twitter " you didn't put "comma" so that's why

  • @Darth4751
    @Darth4751 8 дней назад

    Good value of knowledge under one minute .

  • @ch0c0_1
    @ch0c0_1 9 дней назад

    And what about *args ?

    • @ThePythonDude
      @ThePythonDude 9 дней назад

      There is detailed video on channel bro, please check it will be clear easily 🙂✌️

  • @ByteTimeStories
    @ByteTimeStories 9 дней назад

    This is the equivalent of saying "I've learned that if I move a constant outside of a parenthesis, I can get the same answer without all that confusing stuff in the parenthesis. In retrospect it makes no difference if it's only 1 function not effecting other functions. 1(n + 1) = 1(n) + 1 It's not "confusing stuff", it's the exact same thing written in a different container that's nested in the first container so follows a different ruleset when observed by the magnitude of nested containers.

  • @thatonetoilet
    @thatonetoilet 10 дней назад

    tip: instead of "i = i + 1", you can just do "i += 1"

  • @stevenfraser1842
    @stevenfraser1842 10 дней назад

    A totally useless feature

    • @ThePythonDude
      @ThePythonDude 9 дней назад

      Depends on your usage bro, the else in a while loop runs only if the loop exits normally (without break), making it useful for cases like search operations where you need to check if the loop completed fully.

    • @stevenfraser1842
      @stevenfraser1842 9 дней назад

      @@ThePythonDude By your own admission its a hidden feature - therefore not used very often - there are other ways to do the same thing which maybe more clear

    • @stevenfraser1842
      @stevenfraser1842 6 дней назад

      @@ThePythonDude most good programmers generally see "else" as a bad thing with "if" statements cant see it being any better with "while"

  • @samsmythsenior811
    @samsmythsenior811 10 дней назад

    Dang. Nice.

  • @ratk1ngg
    @ratk1ngg 10 дней назад

    i ve been getting back to python lately thank you

  • @RajuKing-s8n
    @RajuKing-s8n 11 дней назад

    Sir can you please make a series of modules i was soo mess up with the modules like regex,sys etc., 🙏

  • @shillengod
    @shillengod 11 дней назад

    Absolutely useless in the real world...

  • @carlmr4821
    @carlmr4821 11 дней назад

    Maybe also add a max length on the keys to automatically determine the minimum adjustment. Otherwise that first key with 11+ characters will break the formatting.

  • @j00mi
    @j00mi 12 дней назад

    complete useless syntatic sugar

  • @tanishqaccount9807
    @tanishqaccount9807 12 дней назад

    Nice video sir, can u please release video for how to setup Visual Studio Code for python?

    • @ThePythonDude
      @ThePythonDude 12 дней назад

      Thanks, & check videos in our channel there is already one video on this topic, check that and let me know if its helpful or not!

    • @tanishqaccount9807
      @tanishqaccount9807 12 дней назад

      @@ThePythonDude Thank u sir it was helpful

  • @tanishqaccount9807
    @tanishqaccount9807 12 дней назад

    Nice video sir

  • @MohamedEltanash
    @MohamedEltanash 12 дней назад

    Nice tutorial! <3 But maybe you could include a mini project as an example so we can follow along and get the full idea.

    • @ThePythonDude
      @ThePythonDude 12 дней назад

      Thanks, & Sure I keep this in mind next time ☺️✌️

  • @darkzone6414
    @darkzone6414 13 дней назад

    Please remove the popping sound . It's distracting

  • @SurendraSandun-y1y
    @SurendraSandun-y1y 13 дней назад

    Wow new thing about python. But else is not suited for the functionality

    • @ThePythonDude
      @ThePythonDude 13 дней назад

      Yes, & I see your point! else works best in specific cases, like when the loop runs without a break.

  • @nishanbastola8247
    @nishanbastola8247 13 дней назад

    Its not hidden functionality.. Its else suit..

  • @Nonoverse
    @Nonoverse 13 дней назад

    Simply a,b=b,a

    • @ThePythonDude
      @ThePythonDude 13 дней назад

      Yes, that's correct! Here, b, a is treated as a tuple, so when we write a, b = b, a, it becomes a, b = (b, a), demonstrating tuple unpacking. Similarly, if you write a, b = [b, a], it works the same way but with a list instead of a tuple, showcasing Python's flexibility with unpacking.

    • @Nonoverse
      @Nonoverse 13 дней назад

      @ThePythonDude indeed

  • @Ankacik
    @Ankacik 13 дней назад

    Pretty much simple but on point and not boring nice vid

    • @ThePythonDude
      @ThePythonDude 13 дней назад

      Thanks ☺️, Stay tuned for more such informative content! ✌️

  • @timothy6227
    @timothy6227 13 дней назад

    It should be called finally. Else makes no sense, like the rest of python 😢

    • @ThePythonDude
      @ThePythonDude 13 дней назад

      Interesting take! 😊 But, the else runs only if the loop finishes naturally, which makes sense once you get used to it. finally is already used for exceptions.

    • @alisanan9090
      @alisanan9090 11 дней назад

      Finally or then. Else should be for when it breaks

    • @ngocongnguyen
      @ngocongnguyen 11 дней назад

      But the "else" does not make sense in term of NATURAL LINGUISTIC MEANING. When everything is done without any breaks, it should be said "finally" instead of "else".

    • @mbdg6810
      @mbdg6810 10 дней назад

      @@ngocongnguyen”when everything *else* is done” could be a logical way to think of it.

  • @tanishqaccount9807
    @tanishqaccount9807 13 дней назад

    Thanks sir, im beginner and did not know about else thing

    • @ThePythonDude
      @ThePythonDude 13 дней назад

      Well, You Know now, keep on the channel and you will find more interesting stuff like this!

  • @Nitheeshkumar-w1r
    @Nitheeshkumar-w1r 14 дней назад

    How will it work for the second case, where you've typed 'subtrack' on code and give 'subtract' on execution 😅

    • @ThePythonDude
      @ThePythonDude 13 дней назад

      Spelling Mistake bro, Though it will work Perfectly cause we are using operators

  • @balazskoti2603
    @balazskoti2603 14 дней назад

    Thanks Chatgpt!

  • @AeroliteSR
    @AeroliteSR 14 дней назад

    "Heres a super powerful AI in only 3 lines of code! First off you wana start with 'import google.generativeai' 🥴"

  • @rsvdark_main
    @rsvdark_main 14 дней назад

    So it's two lines? import qrcode as qr qr.make("any text here").save("qrcode.png")

  • @princeedze5872
    @princeedze5872 14 дней назад

    Where's the link to your telegram channel

    • @ThePythonDude
      @ThePythonDude 14 дней назад

      search 'Pycode_hubb' on telegram

  • @tanishqaccount9807
    @tanishqaccount9807 15 дней назад

    Nice video, where does the .png file save?

    • @ThePythonDude
      @ThePythonDude 15 дней назад

      @@tanishqaccount9807 thanks 😊✌️, in same folder where program is.