@@PythonPeak No, you didn't miss anything. I just wanted to have your attention before telling you this is one of the worst programming channels I've ever seen. Good day.
@PythonPeak10 күн бұрын
@@paulblart7378 thank for letting me know, I will keep this in mind
@smhdunno15 күн бұрын
Hey is python'S demand decreasing or increasing aside from AI.
@kaavannank21616 күн бұрын
All the best, you are doing many videos in one day, its good try
Most python way of programming. A lib to import other libs. No wonder modern software takes up hundreds of GBs… all due to shitty coding practices like this one
@mehow3263Ай бұрын
That’s not debugging, that’s exception handling
@ChristOfSteelАй бұрын
Why didn't you simply return dict1 | dict2 ?
@johnsamuel1999Ай бұрын
Thanks
@duoaschАй бұрын
pure python is: nlist = [..,[…]] flat = sum(nlist, [])
@bublick346Ай бұрын
It is not clear from video benefits of Enum
@thedrumifyАй бұрын
Does it fix the first or the second variable?
@emcysquareАй бұрын
Is there a git repo ?
@PythonPeakАй бұрын
The files in the repository are organized for each specific case. I recommend searching the channel for individual videos based on the topic. This particular video is a compilation of several smaller videos, and each smaller video has a corresponding repository link provided in its description github.com/SergiuPogor/PYTHON_PEAK/tree/main/examples/videos
@anaclarabarbarescoАй бұрын
thanks!!
@RiskyRichEliteАй бұрын
a lot of tips and code example here...
@serdanaksunger2942Ай бұрын
I used your kinda program to save data in a json file to let it rise up by Running my Projekt again it kinda includes some of your code like the enumerate loop
@jordanhenshawАй бұрын
Could have all been done with .2 lines of code.
@mattchau_nakamuraАй бұрын
What yield mean and what is the benefits compare to return
@PythonPeakАй бұрын
yield gives one value at a time and pauses. It uses less memory and works step by step
@ske2004Ай бұрын
congrats you just invented a dictionary
@maxlevel8525Ай бұрын
And why?
@osark2487Ай бұрын
why the heck everyone just uses fib as example for memoization?!?
@xbizydown2 ай бұрын
Good to know! Thank you for your video
@dnkbmc2 ай бұрын
Why would it be equal? I mean if they would, what would be the reason for having the two?
@Sennken2 ай бұрын
Don't chase one-liners, kids. More often than not, readability is more important than saving a few lines of code
@turbojax072 ай бұрын
I'm not sure the explanation for Python, but i know that the Java equivalent of None (null) is a valueless class, whereas false is a boolean, which is not a class.
@PythonPeak2 ай бұрын
os.system("rm ...") is unsafe and not cross-platform It’s unsafe because special characters in directory can break the command and lead to many other vulnerabilities
@Vyeln2 ай бұрын
@@PythonPeak not cross platform?, wdym, linux, cmd, and pwsh use it
@Vyeln2 ай бұрын
@@PythonPeak special character, give me example
@PythonPeak2 ай бұрын
@@Vyeln it’s not cross-platform because os.system directly depends on the shell. For example, commands written for Linux won’t work on Windows' cmd or PowerShell
@PythonPeak2 ай бұрын
@@Vyeln filename = "photos of me & friends" "rm photos of me & friends" Here, the & tells the shell to run rm photos of me and run friends as a separate command
@Vyeln2 ай бұрын
import os directory = "/tmp/test" os.system("rm " + directory)
@man6k2 ай бұрын
Без "БЛЯЯЯТЬ ПАЙТОН" не принимаю гайды
@smhdunno2 ай бұрын
One question, how does your code not throw an error for continuing the string on the next line
@PythonPeak2 ай бұрын
its NOT continuing the string in next line, i just use soft-wrap to fit in window width, so if i will increase the window size will be just string in 1 single line, its not new line here...
@smhdunno2 ай бұрын
@PythonPeak oh i see now.Thx for the reply
@Samhuelt._2 ай бұрын
what is ur vscode theme?
@PythonPeak2 ай бұрын
its PHPStorms, Material Theme -> Darker Theme
@Samhuelt._2 ай бұрын
@@PythonPeak thanks.
@xbizydown2 ай бұрын
it look cool, im new to python, but i can read that code. but i don't understand what it does
@PythonPeak2 ай бұрын
This code looks at functions and shows their name, inputs, and extra details about the inputs, like if they have default values. It works for normal, short (lambda), and built-in functions
@TheZaomei2 ай бұрын
Yeah... Why not. Do you also use your head when you hammer in a nail?
@LiamClowMusic2 ай бұрын
Always show the output if you do quick code tutorials
@PythonPeak2 ай бұрын
thank for your suggestion, I will include output for next videos
@sashakuznechkin2 ай бұрын
another idiot
@rubydevilofficial2 ай бұрын
too faat bro
@pingu_op-off2 ай бұрын
thx
@hulksimpsons51232 ай бұрын
I thout Os.remove does the same thing. I just read that Os.remove only deletes files not directories. Thx
@PythonPeak2 ай бұрын
Glad you found it helpful! Yes, exactly - os.remove is just for files, while os.rmdir or shutil.rmtree can handle directories. Thanks for watching!
@MunaQhtn2 ай бұрын
Thank you youtube for the zooming feature
@PythonPeak2 ай бұрын
So a bigger text would be better? I'll keep that in mind for future videos-thanks for the feedback
@MunaQhtn2 ай бұрын
@ yeah because the code took like quarter of the whole screen and I had to zoom, anyways, good luck
@saurabhwadekar2532 ай бұрын
You can also create a playlist on Python's Flat Framework. If you make videos on it, don't forget to include the Flet-Route library. Thank you
@PythonPeak2 ай бұрын
Thank you for the tips! I'll definitely include the Flet-Route library and consider making videos on it in the future.
@Cosmo8J2 ай бұрын
could you also use the process.join() from the multiprocessing library?
@GabrielCraioveanu2 ай бұрын
Now run the code
@PythonPeak2 ай бұрын
So I ran it, and everything is working well. You can check it in the GitHub repo for testing: github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/shorts/10865.py Today is: WEDNESDAY It's a regular workday.
@InconspicuousChap2 ай бұрын
Whether you use reduce or write some kind of a scholar loop, it's going to be slow. Python is a spoof of functional languages. Its data structures are flawed to the core. The only efficient way of programming in Python is writing as little as possible Python code and using libraries written in C for every operation. In this example: sequence sum is facilitated by the function sum, max element can be computed by the function max, etc. No user-written lambdas whatsoever.
@PythonPeak2 ай бұрын
Efficient Python is about combining simple code with powerful libraries-that's its real strength
@InconspicuousChap2 ай бұрын
@@PythonPeak right, thin layer of user scripts on top of rocket science implemented in libs.