Пікірлер
@swamix_dot_com
@swamix_dot_com 2 күн бұрын
how does ai generate video with typewriter?
@paulblart7378
@paulblart7378 11 күн бұрын
Hi, do you read your comments?
@PythonPeak
@PythonPeak 11 күн бұрын
of course... Why? I missed a comment?
@paulblart7378
@paulblart7378 10 күн бұрын
@@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.
@PythonPeak
@PythonPeak 10 күн бұрын
@@paulblart7378 thank for letting me know, I will keep this in mind
@smhdunno
@smhdunno 15 күн бұрын
Hey is python'S demand decreasing or increasing aside from AI.
@kaavannank216
@kaavannank216 16 күн бұрын
All the best, you are doing many videos in one day, its good try
@PythonPeak
@PythonPeak 18 күн бұрын
GitHub Free Source Code: 📈 github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/videos/10537.py
@PythonPeak
@PythonPeak 18 күн бұрын
GitHub Free Source Code: ✒️ github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/videos/10544.py
@PythonPeak
@PythonPeak 18 күн бұрын
GitHub Free Source Code: 🔒 github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/videos/10543.py
@PythonPeak
@PythonPeak 18 күн бұрын
GitHub Free Source Code: 📆 github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/videos/10554.py
@PythonPeak
@PythonPeak 19 күн бұрын
GitHub Free Source Code: 📘 github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/videos/10449.py
@PythonPeak
@PythonPeak 19 күн бұрын
GitHub Free Source Code: 🔏 github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/videos/10493.py
@PythonPeak
@PythonPeak 19 күн бұрын
GitHub Free Source Code: 🗄️ github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/videos/10568.py
@rareletho
@rareletho 29 күн бұрын
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
@mehow3263 Ай бұрын
That’s not debugging, that’s exception handling
@ChristOfSteel
@ChristOfSteel Ай бұрын
Why didn't you simply return dict1 | dict2 ?
@johnsamuel1999
@johnsamuel1999 Ай бұрын
Thanks
@duoasch
@duoasch Ай бұрын
pure python is: nlist = [..,[…]] flat = sum(nlist, [])
@bublick346
@bublick346 Ай бұрын
It is not clear from video benefits of Enum
@thedrumify
@thedrumify Ай бұрын
Does it fix the first or the second variable?
@emcysquare
@emcysquare Ай бұрын
Is there a git repo ?
@PythonPeak
@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
@anaclarabarbaresco Ай бұрын
thanks!!
@RiskyRichElite
@RiskyRichElite Ай бұрын
a lot of tips and code example here...
@serdanaksunger2942
@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
@jordanhenshaw Ай бұрын
Could have all been done with .2 lines of code.
@mattchau_nakamura
@mattchau_nakamura Ай бұрын
What yield mean and what is the benefits compare to return
@PythonPeak
@PythonPeak Ай бұрын
yield gives one value at a time and pauses. It uses less memory and works step by step
@ske2004
@ske2004 Ай бұрын
congrats you just invented a dictionary
@maxlevel8525
@maxlevel8525 Ай бұрын
And why?
@osark2487
@osark2487 Ай бұрын
why the heck everyone just uses fib as example for memoization?!?
@xbizydown
@xbizydown 2 ай бұрын
Good to know! Thank you for your video
@dnkbmc
@dnkbmc 2 ай бұрын
Why would it be equal? I mean if they would, what would be the reason for having the two?
@Sennken
@Sennken 2 ай бұрын
Don't chase one-liners, kids. More often than not, readability is more important than saving a few lines of code
@turbojax07
@turbojax07 2 ай бұрын
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.
@PythonPeak
@PythonPeak 2 ай бұрын
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
@Vyeln
@Vyeln 2 ай бұрын
@@PythonPeak not cross platform?, wdym, linux, cmd, and pwsh use it
@Vyeln
@Vyeln 2 ай бұрын
@@PythonPeak special character, give me example
@PythonPeak
@PythonPeak 2 ай бұрын
@@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
@PythonPeak
@PythonPeak 2 ай бұрын
@@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
@Vyeln
@Vyeln 2 ай бұрын
import os directory = "/tmp/test" os.system("rm " + directory)
@man6k
@man6k 2 ай бұрын
Без "БЛЯЯЯТЬ ПАЙТОН" не принимаю гайды
@smhdunno
@smhdunno 2 ай бұрын
One question, how does your code not throw an error for continuing the string on the next line
@PythonPeak
@PythonPeak 2 ай бұрын
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...
@smhdunno
@smhdunno 2 ай бұрын
@PythonPeak oh i see now.Thx for the reply
@Samhuelt._
@Samhuelt._ 2 ай бұрын
what is ur vscode theme?
@PythonPeak
@PythonPeak 2 ай бұрын
its PHPStorms, Material Theme -> Darker Theme
@Samhuelt._
@Samhuelt._ 2 ай бұрын
@@PythonPeak thanks.
@xbizydown
@xbizydown 2 ай бұрын
it look cool, im new to python, but i can read that code. but i don't understand what it does
@PythonPeak
@PythonPeak 2 ай бұрын
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
@TheZaomei
@TheZaomei 2 ай бұрын
Yeah... Why not. Do you also use your head when you hammer in a nail?
@LiamClowMusic
@LiamClowMusic 2 ай бұрын
Always show the output if you do quick code tutorials
@PythonPeak
@PythonPeak 2 ай бұрын
thank for your suggestion, I will include output for next videos
@sashakuznechkin
@sashakuznechkin 2 ай бұрын
another idiot
@rubydevilofficial
@rubydevilofficial 2 ай бұрын
too faat bro
@pingu_op-off
@pingu_op-off 2 ай бұрын
thx
@hulksimpsons5123
@hulksimpsons5123 2 ай бұрын
I thout Os.remove does the same thing. I just read that Os.remove only deletes files not directories. Thx
@PythonPeak
@PythonPeak 2 ай бұрын
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!
@MunaQhtn
@MunaQhtn 2 ай бұрын
Thank you youtube for the zooming feature
@PythonPeak
@PythonPeak 2 ай бұрын
So a bigger text would be better? I'll keep that in mind for future videos-thanks for the feedback
@MunaQhtn
@MunaQhtn 2 ай бұрын
@ yeah because the code took like quarter of the whole screen and I had to zoom, anyways, good luck
@saurabhwadekar253
@saurabhwadekar253 2 ай бұрын
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
@PythonPeak
@PythonPeak 2 ай бұрын
Thank you for the tips! I'll definitely include the Flet-Route library and consider making videos on it in the future.
@Cosmo8J
@Cosmo8J 2 ай бұрын
could you also use the process.join() from the multiprocessing library?
@GabrielCraioveanu
@GabrielCraioveanu 2 ай бұрын
Now run the code
@PythonPeak
@PythonPeak 2 ай бұрын
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.
@InconspicuousChap
@InconspicuousChap 2 ай бұрын
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.
@PythonPeak
@PythonPeak 2 ай бұрын
Efficient Python is about combining simple code with powerful libraries-that's its real strength
@InconspicuousChap
@InconspicuousChap 2 ай бұрын
@@PythonPeak right, thin layer of user scripts on top of rocket science implemented in libs.
@PythonPeak
@PythonPeak 2 ай бұрын
GitHub Free Source Code: 📆 github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/shorts/10882.py
@PythonPeak
@PythonPeak 2 ай бұрын
GitHub Free Source Code: 📖 github.com/SergiuPogor/PYTHON_PEAK/blob/main/examples/shorts/10640.py