- Видео 36
- Просмотров 70 635
The Python Dude
Индия
Добавлен 1 янв 2025
Welcome to The Python Dude! This is the ultimate place to learn Python.
Whether you're just starting out or looking to improve your skills, you'll find easy-to-follow tutorials and tips here.
We cover everything from basic concepts to more advanced topics, helping you master Python step by step.
Join us and start learning today!
Whether you're just starting out or looking to improve your skills, you'll find easy-to-follow tutorials and tips here.
We cover everything from basic concepts to more advanced topics, helping you master Python step by step.
Join us and start learning today!
Password Generator with Python! #coding #learnpython
Password Generator with Python! #coding #learnpython
Просмотров: 7
Видео
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 #coding
Просмотров 1,4 тыс.2 дня назад
I found hidden function in Python!! #pythontips #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 #programming
Просмотров 8055 дней назад
Python vs C Speed Comparison #programming
How to confuse a Python developer? #pythonprogramming
Просмотров 4,6 тыс.7 дней назад
How to confuse a Python developer? #pythonprogramming
*ARGS in Python?? #python #coding #programmingtips
Просмотров 7958 дней назад
*ARGS in Python?? #python #coding #programmingtips
Python **KWARGS Explained! 🚀 #Python #Coding
Просмотров 8799 дней назад
Python KWARGS Explained! 🚀 #Python #Coding
*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 #coding
Просмотров 7 тыс.11 дней назад
Unlocking a Cool Feature of enumerate() in Python #learnpython #coding
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! 🤯 #pythontips
Просмотров 54913 дней назад
Swap Two Numbers in Python with Just ONE Line! 🤯 #pythontips
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 #learnpython
Просмотров 1,4 тыс.15 дней назад
Create a QR Code in Just 4 Lines of Code! #python #learnpython
next video: how to write an operating system in 3 lines
Lol 😂
Everyone know about extend method
Nice 👍
And may be stop using dictionaries for such data structures, and use dataclasses instead?
Hey man an error isn't that bad. Maps in C++ insert that automatically if the key doesn't exist 🤣😆😆
Haha, I found it
Nice 👍
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
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.
Same as for-loop
Depending on the optimization level of the C++ compiler, it may have completely removed the for loop, since the i variable is never used
imao, py is interpreted, and C++ is compiler before the run or start your program, the project was build
hey why tf are you edditing in the terminal i thought it was some downgraded vi and vim but no i guess
It's because in Python and almost any other programing language and computers START COUNTING FROM 0 NOT FROM 1!!!
So you assume if a list has only one element in it, its length should be 0?
Instagram just isn't good enough to get counted on the list
Because you fogot a comma
Between Twitter and reddit there will be ","
Forgot the last comma
You can't confuse python, it confuses you
Bro thinks we won't notice the comma
That is why i hate python, The debugging would take hours on this shi
You forgot comma, and it concatenates the strings
twitter and reddit are one word cuz of no comma so it thinks its one word
You forgot 1 comma
Because after "twitter " you didn't put "comma" so that's why
Good value of knowledge under one minute .
Subscribe For More 🙂
And what about *args ?
There is detailed video on channel bro, please check it will be clear easily 🙂✌️
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.
tip: instead of "i = i + 1", you can just do "i += 1"
A totally useless feature
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.
@@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
@@ThePythonDude most good programmers generally see "else" as a bad thing with "if" statements cant see it being any better with "while"
Dang. Nice.
i ve been getting back to python lately thank you
Welcome ☺️
Sir can you please make a series of modules i was soo mess up with the modules like regex,sys etc., 🙏
Sure, will try in future videos
@ThePythonDude thanks sir
Absolutely useless in the real world...
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.
complete useless syntatic sugar
Nice video sir, can u please release video for how to setup Visual Studio Code for python?
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!
@@ThePythonDude Thank u sir it was helpful
Nice video sir
Thanks ☺
Nice tutorial! <3 But maybe you could include a mini project as an example so we can follow along and get the full idea.
Thanks, & Sure I keep this in mind next time ☺️✌️
Please remove the popping sound . It's distracting
Okay, Thanks for suggesting ☺
Wow new thing about python. But else is not suited for the functionality
Yes, & I see your point! else works best in specific cases, like when the loop runs without a break.
Its not hidden functionality.. Its else suit..
Yes
Simply a,b=b,a
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.
@ThePythonDude indeed
Pretty much simple but on point and not boring nice vid
Thanks ☺️, Stay tuned for more such informative content! ✌️
It should be called finally. Else makes no sense, like the rest of python 😢
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.
Finally or then. Else should be for when it breaks
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".
@@ngocongnguyen”when everything *else* is done” could be a logical way to think of it.
Thanks sir, im beginner and did not know about else thing
Well, You Know now, keep on the channel and you will find more interesting stuff like this!
How will it work for the second case, where you've typed 'subtrack' on code and give 'subtract' on execution 😅
Spelling Mistake bro, Though it will work Perfectly cause we are using operators
Thanks Chatgpt!
"Heres a super powerful AI in only 3 lines of code! First off you wana start with 'import google.generativeai' 🥴"
So it's two lines? import qrcode as qr qr.make("any text here").save("qrcode.png")
Where's the link to your telegram channel
search 'Pycode_hubb' on telegram
Nice video, where does the .png file save?
@@tanishqaccount9807 thanks 😊✌️, in same folder where program is.