Тёмный

5 Python tricks that will improve your life 

Aaron Jack
Подписаться 417 тыс.
Просмотров 561 тыс.
50% 1

Freelance Coding is the way in 2024! Learn How: www.freemote.com/strategy
/ aaronjack
#coding #programming #javascript

Наука

Опубликовано:

 

9 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 458   
@inigo8740
@inigo8740 4 года назад
This guy: pdb Me: print
@irend1163
@irend1163 4 года назад
def my_func(number): if number + 2 == 4: print("program is running baby") else: print("your code suck") my_func(2) Run the program, Your code suck Me : *what the hell happened here*
@OmarKhaled-ld5ur
@OmarKhaled-ld5ur 4 года назад
@@irend1163 you sure it didn't work cause i did the same and it worked
@irend1163
@irend1163 4 года назад
@@OmarKhaled-ld5ur it just joke man, of course it's a working code
@zyz1153
@zyz1153 4 года назад
Inigo Diaz use pycharm to make it easier
@kanva4
@kanva4 4 года назад
@@OmarKhaled-ld5ur woooosh
@sandervanrijn3442
@sandervanrijn3442 4 года назад
0:48 - The interactive shell (python -i file.py) 1:49 - Python Debugger (import pdb - standard library) 2:56 - Virtual Environments 4:19 - List and Dictionary comprehensions 6:34 - Lambda functions
@xle6ywek345
@xle6ywek345 3 года назад
thank you, nothing interesting
@bhuvanpatel4833
@bhuvanpatel4833 3 года назад
Thank you so much.
@baphnie
@baphnie 3 года назад
Don’t fall into the trap of rating code by counting lines (re: list comprehension). Your code ought to be efficient, but MUST be readable. The best code is that which future peers can read reasonably quickly.
@phoehtaung
@phoehtaung 4 года назад
For those asking what font Dank Mono What IDE/Text Editor? VSCode What theme? Material Theme
@MrChickenpoulet
@MrChickenpoulet 4 года назад
Hey thanks for that
@zephyr7
@zephyr7 4 года назад
I was just gonna ask that
@linusbrendel
@linusbrendel 4 года назад
Thank you very much ♥️
@InarusLynx
@InarusLynx 4 года назад
A man after my own heart. A man of culture and fine taste. Excellent choice for theme.
@LavakeshPandey
@LavakeshPandey 4 года назад
Dank Mono costs £40.
@saminchowdhury7995
@saminchowdhury7995 4 года назад
Production quality is amazing. Thank you brother.
@mateuszkolpa
@mateuszkolpa 4 года назад
It's depreciated by PEP8 to assign lambda functions. They are mainly used for stuff like this: tuples = [(1, 5), (1, 3), (1, 4)] tuples.sort(key=lambda x: x[1]) print(tuples) OUTPUT: [(1, 3), (1, 4), (1, 5)] For 1 line functions do: def add(a, b): return a + b
@tobiaswegener1234
@tobiaswegener1234 4 года назад
Interesting thanks for the info!
@TheJobCompany
@TheJobCompany 4 года назад
It's against PEP8 to not put a newline after a ":", so you would have to do it in 2 lines.
@TimoKvapil
@TimoKvapil 4 года назад
I know that this might be a stupid question for you (I AM A BIG NOOB) But is it possible to recreate this sorting thingy, without actually using lambda. I mean using only functions. (we can't use lambda at school)
@M15t4r1pP4
@M15t4r1pP4 4 года назад
Timotej Kvapil Depends on what you mean. If you’re asking about sorting a list using the key parameter and a lambda, then yes, that is doable.
@soundcore183
@soundcore183 4 года назад
lambda can be used in commands for gui elements adding values without to specify a global function. Look at it like a list comprehension inside a function taking x and making basic operations without a function name. The difference to def i think it doesn't create an object or dict in general for exuting the function header like calling eval. Most of the object types in python are hidden dictionaries. Generators and annotators weren't mentioned.
@bikerkid975
@bikerkid975 4 года назад
Loving the increase in video efficiency and overall creativity and style. Keep it up! Cheers from Montréal
@marcoscz7858
@marcoscz7858 4 года назад
Amazing, strait to the point videos. Keep them coming!
@tmiae0
@tmiae0 4 года назад
Great video, keep 'em coming!
@somiljain7670
@somiljain7670 4 года назад
Thanks! for sharing these tips :)
@8ctrl763
@8ctrl763 4 года назад
The editing and the content is absolutely amazing (P.S - need more videos like the tinder bot may be post a building a bot or something once a week)
@kaczordonald1426
@kaczordonald1426 4 года назад
I learned something new. Thanks!
@bradylange
@bradylange 3 года назад
This is extremely useful! I develop a lot with Python and had no idea about the interactive shell or the Python Debugger. Thank you!
@felixk2129
@felixk2129 3 года назад
Awesome, thanks a lot!
@givdb5513
@givdb5513 3 года назад
Excellent vide, better than the majority of RU-vid videos. What I really need actually for now it's a complete semantic, syntax explanation of Python and languages in general
@claymcclendon
@claymcclendon 4 года назад
I am taking a python class rn and this is extremely helpful! Wish I knew this a couple weeks of ago.
@antoniofuller2331
@antoniofuller2331 3 года назад
Lol
@FrootNinja
@FrootNinja 4 года назад
Your production value in your video has gotten better I love the new setup
@kalanachamath
@kalanachamath Год назад
Thanks man!
@lpdc9767
@lpdc9767 4 года назад
Very good quality and channel consistency. Thanks for the tips.
@Circumvenscion
@Circumvenscion 4 года назад
Love your vids man. Great tips, thank you!
@JayTeaFTW
@JayTeaFTW 4 года назад
For sure my new favorite channel
@jaykim7161
@jaykim7161 3 года назад
Thank you Aaron
@hkn5539
@hkn5539 3 года назад
Awesome. Thanks bro.
@riteshbhartiya6155
@riteshbhartiya6155 4 года назад
You made my life so easy, and effortless 🎶
@Shadowhuntazz
@Shadowhuntazz 4 года назад
As a python beginner, this is a nice and truly useful vid man, thanks 😉
@solracq100
@solracq100 4 года назад
Thanks a lot! Very useful stuff!
@ahmedalgrai
@ahmedalgrai 4 года назад
I'm just glad that I found this channel.
@mikeblijd
@mikeblijd 3 года назад
For real for real
@fusrusty253
@fusrusty253 4 года назад
Well done!! Love your videos!!
@depressedknight369
@depressedknight369 2 года назад
this is really so helpful, always. Whether I revise things just for my knowledge sake or preparing for an insterview, I go through this video for sure.
@anaximeno
@anaximeno 3 года назад
Usefull for sure!
@raf6125
@raf6125 4 года назад
Thank you. This was really useful
@vinni113
@vinni113 2 года назад
Really great video! I've been using python for a while but learnt some new things so thanks!
@sasukesan96
@sasukesan96 4 года назад
You are my favorite youtuber, thank you so much for teaching us all that stuff. This channel is truly underrated.
@masthanjinostra2981
@masthanjinostra2981 3 года назад
Its overated or underrated?
@oliverzhang6102
@oliverzhang6102 4 года назад
Thanks a lot! That's very useful!
@avinashtammali6130
@avinashtammali6130 4 года назад
thats quite helpuful mate thanks
@luis96xd
@luis96xd 4 года назад
Thanjs for all this tricks and tips!
@TubularAnimator
@TubularAnimator 2 года назад
I love your channel. Been subscribed for a long time.
@AaronJack
@AaronJack Год назад
Thank you so much!
@ebentee
@ebentee 4 года назад
Thanks for sharing my bro
@douglasm1494
@douglasm1494 4 года назад
Thanks for the tips Shaggy
@Francois3k
@Francois3k 4 года назад
Were did u go learn all your animation you put in the videos? cause it looks firee. If you can, can you tell me what courses you use an the resource cause that would be awesome 😊😊😊
@CordonbleuZz
@CordonbleuZz 4 года назад
List comprehensions are very powerful! i've seen it in Haskell (functional programming language) where you could write quicksort in 2 lines
@chaddaifouche536
@chaddaifouche536 3 года назад
List comprehension actually originates from Haskell, Guido was inspired by its syntax (and adapted that to Python). Of course list comprehensions in Haskell have their origin in set comprehension in Mathematics.
@berkay2410
@berkay2410 4 года назад
For Windows 10 using PyCharm with Python 3.7.6 , when you initialize a virtual environment "virtualenv venv" in PyCharm Terminal on your project, new folder containts "Include,Lib,Scripts,tcl and Readme.txt" , no /bin/. What you can do is cd to Scripts and then just type "activate" . should do it.
@robertwallace5498
@robertwallace5498 4 года назад
thank you for these tips :)
@MrEcksan
@MrEcksan 4 года назад
Great, thanks!
@muhammadahmedjaved7691
@muhammadahmedjaved7691 4 года назад
Your videos are always very awesome and informative I always watch whenever they are released a lot of people don't yet know how good you and your video are you will get a lot of subscriber in near future if you continue to produce these awesome videos
@rogercheng1294
@rogercheng1294 4 года назад
Thanks a lot !
@dallaskappel1
@dallaskappel1 4 года назад
Hahahahahah thank you 🙏 you made my whole week Code Drip!
@codecat8430
@codecat8430 3 года назад
Great stuff!
@_gpop
@_gpop 4 года назад
List comprehensions changed my life. I should probably be working more in virtual environments though.
@eesakamaldien1917
@eesakamaldien1917 3 года назад
Just subscribed. This video is so helpful
@JulienReszka
@JulienReszka 4 года назад
Not even 2 minutes of video and already learned something great. Thanks
@nmtechie4033
@nmtechie4033 4 года назад
Very useful tools. Thank you so much.
@andre-barrett
@andre-barrett 4 года назад
Awesome tips and tricks. I'm not a Python developer but I've been a software engineer for 20+ years. Let's keep sharing the knowledge
@matrixv01
@matrixv01 4 года назад
Awesome videos. Keep it up!
@activestate
@activestate 4 года назад
Great pdb tip!
@Endlessvoidsutidos
@Endlessvoidsutidos 4 года назад
great vid thanks for the tips
@refaiabdeen5943
@refaiabdeen5943 3 года назад
Cheers Mate !
@jason17493
@jason17493 4 года назад
comprehensions and lambdas, filters, map are usually ignored in python, which actually very useful if used in right ways. Useful video man, keep em coming ! Thanks
@dinesh.p8642
@dinesh.p8642 3 года назад
your voice is nice and smooth. You are a legend!
@mbonuchinedu2420
@mbonuchinedu2420 4 года назад
indeed, its gonna be around for a verrrry long time
@hermesmercuriustrismegistu4841
@hermesmercuriustrismegistu4841 4 года назад
Amazing videos!
@tee9120
@tee9120 4 года назад
Another cool vid, thanks bruh
@NicklasBekkevold
@NicklasBekkevold 4 года назад
Hey, nice video! Your VScode looks great, which theme / fonts are you using?
@fcmorena246
@fcmorena246 3 года назад
nice tutorial, expects more
@FernandoOrtega10
@FernandoOrtega10 4 года назад
Strings have the startswith() method to check the first letter. And you can also do set comprehensions, which use the curly brackets just like the dictionary comprehension.
@grantwilliams630
@grantwilliams630 4 года назад
I’d recommend conda environments over virtualenv if you plan on using math or statistical libraries anyway. Conda’s numpy installation comes with Intel’s MKL and is worth using
@nikluz3807
@nikluz3807 4 года назад
Damn this is my fav new channel
@phlynniii
@phlynniii 4 года назад
Thank you
@depressedknight369
@depressedknight369 4 года назад
and thanks a lot for this...it was nice
@gulshankumar17
@gulshankumar17 4 года назад
wow, thanks man. Python is really great. Yesterday I was given some excel sheets to work. Instead of doing it manually I use python pandas library.
@irend1163
@irend1163 4 года назад
What do you need to do with excel sheets? And how do you work it automatically with python?
@AU24097
@AU24097 Год назад
@@irend1163 he’s probably reading the excel sheet and converting it into a pandas dataframe.
@emperorscotty
@emperorscotty 3 года назад
i need to start coding now that i went over all the basics
@javiporras3396
@javiporras3396 4 года назад
quality, Would you be able to do small projects for beginners ? Thanks!
@netbin
@netbin 4 года назад
Very useful, i find it!
@TheCarmacon
@TheCarmacon 4 года назад
I love virtual environments. I mainly use them for system tests where the system is usually a medical device running Linux. I mostly do image processing within the venv - the system itself remains completely unchanged by the test. scp all the python stuff onto the remote system, execute via ssh, scp everything back onto the local machine and clean up the remote system. No installations, yet full fledged image processing.
@securitephile8284
@securitephile8284 4 года назад
For my first look, I was think you are Jake McDorman
@jdparden
@jdparden 4 года назад
good job bro!
@gabrielh5105
@gabrielh5105 4 года назад
Wow, the edition of this video is incredible. The transitions, the camera, the light, the animations, wow. You have escalated a lot. From English teacher, passing through software developer, to a great content creator. Keep it up.
@sausas8209
@sausas8209 Год назад
I agree! Quick intro, cool but not too long or annoying splash, to the point tips and great screen capture only containing the necessary information !
@thesam723
@thesam723 4 года назад
The lambdas and sort function is good for data science as it's a more functional approach to programming
@xgndqeggxgndqegg
@xgndqeggxgndqegg 4 года назад
awesome !
@yousaymyname5174
@yousaymyname5174 4 года назад
So useful tips
@junkokonno
@junkokonno 3 года назад
for the pdb you can replace it with breakpoint() instead
@TechPravinya
@TechPravinya 4 года назад
👍 Good job. Nice presentation and content.
@igorthelight
@igorthelight 3 года назад
Just remember guys: less code != cleaner code
@wouldbealex
@wouldbealex 4 года назад
anaconda with a jupyter notebook makes debugging in-line. Then the code can either be run externally against the notebook or export the code to a py script. Conda also allows for multiple environments. With each environment, the developer can install whatever is best or required for that environment (e.g., _r-mutex and r-base in one env and Microsoft MOR in another without conflicts between libraries/packages. Otherwise, great starter video. Dictionaries or any other form of collection that can be traversed without array interactions is really important in all languages. Lamda and filter are great!
@jrwkc
@jrwkc 4 года назад
bruh, ya using VSCode and then also using pdb inside of it. That's putting a hat on a hat. The debugger in VScode is life changing.
@kevinchan6271
@kevinchan6271 4 года назад
This is really good! Glad I found it,. Do you know how to get a results from a specific network in a chrome browser by using python?
@blightning8889
@blightning8889 4 года назад
dang dude you have quite the following so do you work (onsite or remote) for a company or do you only freelance? and what code stack have you been using primarily? im located in Austin, Texas and have been learning JS and now Py I want to start looking for positions as a coder and want to go about it the best wayyyyy
@jeanpolice3044
@jeanpolice3044 4 года назад
Nice content !! ⭐ 💪💪
@depressedknight369
@depressedknight369 4 года назад
wow nice thanks
@joshvan-h8402
@joshvan-h8402 4 года назад
Thanks
@gsharan2901
@gsharan2901 4 года назад
Your voice makes me fall asleep 😴 So soothing
@AdamBakerMTB
@AdamBakerMTB 4 года назад
More Python content please Thank you
@mike_kravchenko
@mike_kravchenko 4 года назад
WHAT IS INSIDE OF FOLDER "RUSSIA"?
@sickofit1304
@sickofit1304 4 года назад
I want to know that too..
@UlfKlose
@UlfKlose 4 года назад
It says “RussiaN”. I guess he’s learning the Russian language or something.
@skynet1024
@skynet1024 4 года назад
maybe its how to ask for mercy in russian (if ww3 happens)
@Turco949
@Turco949 4 года назад
It will be in another video.
@shayantej651
@shayantej651 4 года назад
Russian Nuclear Hacking codes😂😂😂😂
@catfan5618
@catfan5618 3 года назад
Nice VS Code setup. Which font are you using?
@jouharp9593
@jouharp9593 2 года назад
Sir well presentation
@hangchen6131
@hangchen6131 4 года назад
Useful
@alfredpolanco4670
@alfredpolanco4670 4 года назад
U da besst, greetings from Dominican Republic!
@thefullstackanalyst9596
@thefullstackanalyst9596 4 года назад
Great vid
@javidhesenov7611
@javidhesenov7611 2 года назад
Awesome
@gongjiaji2489
@gongjiaji2489 4 года назад
filter is useful, i dont know it before
Далее
5 Good Python Habits
17:35
Просмотров 356 тыс.
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1 млн
5 More Useful F-String Tricks In Python
9:38
Просмотров 40 тыс.
15 Python Libraries You Should Know About
14:54
Просмотров 361 тыс.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,5 млн
Debugging 101: Replace print() with icecream ic()
12:36
5 Coding Side Hustles for 2024
8:00
Просмотров 36 тыс.
25 nooby Python habits you need to ditch
9:12
Просмотров 1,7 млн
All 39 Python Keywords Explained
34:08
Просмотров 103 тыс.
5 Useful F-String Tricks In Python
10:02
Просмотров 255 тыс.
5 Uncommon Python Features I Love
15:09
Просмотров 128 тыс.
Apple watch hidden camera
0:34
Просмотров 58 млн