Тёмный

10 Python Tips & Tricks That You Do Not Know || Python Clever Tips || Learn Python Shortcuts 

Programming Hero
Подписаться 313 тыс.
Просмотров 152 тыс.
50% 1

Programming becomes enjoyable when we know some tips & tricks. If you're a new python developer and want to learn cool and clever python tips & tricks, this video is for you.
WHAT IS THE VIDEO ABOUT?
• 10 Clever Hacks To Make You A Smarter Developer
• And, Shortcuts To Make Your Life Much More Fun And Easier As A Programmer
Now, if you're new to the programming world and don't know what to do, go check out our app and build your own game immediately while learning.
Android App: bit.ly/AndroidProgHero
iPhone Version: bit.ly/iOSProgHero
If you've much more important works than this (to call your significant other), we're here for you:
TIMESTAMPS
Tip & Trick 1: 0:28
Tip & Trick 2: 2:33
Tip & Trick 3: 5:02
Tip & Trick 4: 6:44
Tip & Trick 5: 8:44
Tip & Trick 6: 10:25
Tip & Trick 7: 12:00
Tip & Trick 8: 14:47
Tip & Trick 9: 16:56
Tip & Trick 10: 17:49
OUR SOCIAL MEDIA
Watch us on Facebook: bit.ly/FBProgHero
Peep us on Instagram: bit.ly/IGProgHero
Fly with us on Twitter: bit.ly/TWProgHero
Board with us on Pinterest: bit.ly/PTProgHero
Try these tricks and make your friends jealous. 😁
We're with you. Feel free to mail us anytime you need anything: social@programming-hero.com
#python #learnpython #pythondeveloper

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

 

10 май 2020

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 493   
@syedshubha
@syedshubha 4 года назад
Trick 10: You can also write: print(name == name[ : : -1]) And one bonus trick: one can check odd even using just this line print('odd' if int(input('Enter a number: '))%2 else 'even')
@ProgrammingHero
@ProgrammingHero 4 года назад
Thank you so much.
@rudhrarekapally3330
@rudhrarekapally3330 3 года назад
Explain the line ?
@tathyagarg2018
@tathyagarg2018 2 года назад
@@rudhrarekapally3330 basically python takes 1 as true and 0 as false so 3%2 is 1 and since 1 is considered True, print('odd') gets executed. If it was 2%2 the output would be 0, considered False, print('even') would get executed
@camoflasche
@camoflasche 2 года назад
But that is Not really Clean Code or is it?
@notfaizen.05
@notfaizen.05 2 года назад
@@camoflasche beauty is in the eye of the beholder, meaning a code that may look clean to someone, may look unclean to another person
@sahilrawat7966
@sahilrawat7966 3 года назад
I was Praised by the subject teacher during practicals due to this trick 💖💖🙌😁 thank you very much!!
@ProgrammingHero
@ProgrammingHero 3 года назад
You're very welcome!
@alexmercer8983
@alexmercer8983 3 года назад
One good channel that makes us novice programmers learn actual stuff. I binged your channel for hours today since morning. Absolutely loved your content, keep doing em more! Good luck to you!
@curiousnerdkitteh
@curiousnerdkitteh 3 года назад
"Many of you guys might know this but I want to give you guys since points as well". ♥️ Such a sweet wholesome guy! I love how encouraging and friendly his videos are! Also he has really cute ways of asking for likes and subscribes and shares haha.
@tanmaytiwari2198
@tanmaytiwari2198 3 года назад
I love the way you teach! Very engaging. Didn't feel like I watched a 20 minutes video. Keep it up sir! Would love to see more such videos🔥🎉
@ProgrammingHero
@ProgrammingHero 3 года назад
Awesome, thank you!
@gamert2525
@gamert2525 4 года назад
One more trick: *you don't need indentation after if condition* Ex: if n==3:print('number is 3')
@ProgrammingHero
@ProgrammingHero 4 года назад
Thanks for sharing the trick
@rakibahsaf6275
@rakibahsaf6275 4 года назад
One more trick: programmers are lazy
@imranyounus7559
@imranyounus7559 4 года назад
But it's bad idea, pep-8 hates it
@THE____KING
@THE____KING 4 года назад
indentation means space?
@angadsingh6478
@angadsingh6478 4 года назад
@@THE____KING kind off
@photosynthesis_by_pete4006
@photosynthesis_by_pete4006 3 года назад
Thanks from Australia. God bless. Brilliant and simple spot on. Keep going. This is my favorite python channel
@abhishekchamp1776
@abhishekchamp1776 3 года назад
Am I the only one who thinks he needs to do part-2? This is insanely awesome :)
@bendirval3612
@bendirval3612 2 года назад
These were simple but also clever and useful. Exactly the kind of tips and tricks that are interesting to learn. Thanks!
@dmitrykulik758
@dmitrykulik758 3 года назад
Good job mate, I knew 6 fo them but first 4 were quite interesting :) Keep going this way.
@ProgrammingHero
@ProgrammingHero 3 года назад
Thanks, will do!
@parthsharma1679
@parthsharma1679 3 года назад
I know 9 tricks out of ten . Thanks for giving such a good lesson . Please keep uploading the good work. 🔥🔥🔥🙂Also I have shared to all my friends 😊
@riemann9412
@riemann9412 2 года назад
You are awesome bro, Please bring this type of content regularly, you are giving back to society and this is highly appreciated, Love from U.P.
@out_aloud
@out_aloud 3 года назад
Much much much better and much high level stuff than what I really expected,
@farhadaliyev6962
@farhadaliyev6962 2 года назад
Thanks my friend, I would like to have such a teacher! Keep doing this content! Wish you all the best!😊
@enthusiast1
@enthusiast1 2 года назад
Great video! My favorites are using any/all for numerous conditions, and using the count func as the key parameter of max func to derive the most frequent element from the list.
@rgk1579
@rgk1579 3 года назад
Trick 7 can even be simplified odd_sq=[i*i for i in range(1,11,2)]
@robinpipslayertekprofitsfa2644
@robinpipslayertekprofitsfa2644 6 месяцев назад
WoooW! I knew like Maybe 2/3 things......of the other 8/7, I was aware of half the methods!! Brilliant!!
@rajatnayak972
@rajatnayak972 2 года назад
I love when he explains the trick he feels like he is revealing some magic trick. Great vibe😁❤️
@Sugar97.
@Sugar97. 2 года назад
I knew 6 tricks outta them .... thanks for putting a great effort for us ......
@johnnycastillo9139
@johnnycastillo9139 2 года назад
I didn't know about putting conditionals in a list. Thanks!
@christianrios639
@christianrios639 Год назад
Great tutorial! everything made sense.
@GreenCheese500
@GreenCheese500 2 года назад
Keeping Tricks aside, You have so much Positive Energy ✨️ Sending Tons of Thanks !!! Thank You 👍
@anandkashyap1185
@anandkashyap1185 2 года назад
This video is very much awesome video because it gives lots of new tricks to learn easy and efficient way with less line of code
@jeopardisinggaming8045
@jeopardisinggaming8045 2 года назад
Sir this video help me alot . Thank you sir .plz make more videos like this
@alexeymatveev9031
@alexeymatveev9031 Год назад
Checkers idea is gold!
@panyalamadhavi8295
@panyalamadhavi8295 3 года назад
Simply superb... 👍
@onthecamo631
@onthecamo631 3 года назад
sir, Trick - 9 is fantastic
@akira_asahi
@akira_asahi 2 года назад
Thank you for the video. I am grateful for your time and contribution. Kind regards, Akira.
@dikshatomar5742
@dikshatomar5742 3 года назад
The video is just fantastic thank you for making such videos for us ❤️
@sanyal27
@sanyal27 Год назад
Nice tricks. 10th one is the trick which i will need to practice and see :)
@mr.explorer9140
@mr.explorer9140 3 года назад
short code of clever no. 8 def add(*num): return sum(list(num)) print(add(5,6,4)) output :- >>> 15
@aprameyamandal4346
@aprameyamandal4346 3 года назад
I just find 3 of them unknown to me. Thanks!😀
@mgmartin51
@mgmartin51 2 года назад
I was able to come up with two of them on the fly, but didn’t really know any of these tips. >>> Awesome video!
@farzamsh9668
@farzamsh9668 3 года назад
I realy like when you say it's a simple thing, maybe it's not actually but it seems simple when you say it
@8bitfilms584
@8bitfilms584 2 года назад
Thanks man, these tips helped me out
@smarter_by_bit9346
@smarter_by_bit9346 3 года назад
Cool and very satisfying vedio
@griffer695
@griffer695 Год назад
Awesome video! 👌
@Mr_Zero_Zero_7
@Mr_Zero_Zero_7 2 года назад
this guy is one of a kind 🔥🔥❤️❤️
@jamesosullivan751
@jamesosullivan751 Год назад
Thank you for this
@riyaanshkarwa
@riyaanshkarwa Месяц назад
How simplified way you shown tricks and tips or hacks to minimize coding in python from 5 to 10 lines of code in other pragramming language or few lines in python which you shown in 1 line of code only. Great!! Many of them are interview questions as well
@robertoamarillas
@robertoamarillas 3 года назад
Such a good vibe You have my friend, keep on the good job
@ProgrammingHero
@ProgrammingHero 3 года назад
Thanks, you too!
@shubhampal2971
@shubhampal2971 3 года назад
@@ProgrammingHero i only knew the first one. Rest of all after watching your video. Thnx for this cool video.
@unacademicalcoders-bengali1552
@unacademicalcoders-bengali1552 4 года назад
I read in class 9 ....though I dream to be a advanced python developer before completing class 11,and this one will be happen only through the Programming Hero app!!! By the way really awesome tricks!
@ProgrammingHero
@ProgrammingHero 4 года назад
Thanks a million. Really glad to hear this. ❤️
@shamimanowar1726
@shamimanowar1726 3 года назад
Knew 6 tricks before, Sir😍
@pythonandvba4526
@pythonandvba4526 3 года назад
No Comment, You are the Best
@nasers8110
@nasers8110 4 года назад
Great lesson brother. May God bless you! I'm an beginning and I know just 2 ;)
@ProgrammingHero
@ProgrammingHero 4 года назад
Thank you Naser. Stay tuned for more
@YoutubePremium-ny2ys
@YoutubePremium-ny2ys 3 года назад
Awesome video.....i have learnt 4 new things....try to include map filter and lambda functions...they are really helpfull in most cases
@maxvinella941
@maxvinella941 3 года назад
Great tricks..we want more!! please
@shiblyaziz4528
@shiblyaziz4528 2 года назад
Awesome tutorial ❤️
@elazharabderrahim
@elazharabderrahim 2 года назад
Really, awesome vidéo
@mukeshgadhesariya
@mukeshgadhesariya 3 года назад
Wow just wow....cant thank u enough....and ya! I shared on Facebook
@kenhaley4
@kenhaley4 2 года назад
Clever point number 10 (at 17:50) defines an unnecessarily complex function called isPlaindrome. What it does is this: First it reverses the string (no surprise). Then, it searches for the reversed string as SUBSTRING of the first string. Then, finally, if the reversed string is found as a substring of the original string, it looks to see if that match happened at position 0, and if THAT's true, it returns true. It took me a few moments to figure out how this works. Instead, why not simply check if the reversed string is equal to the original string, like so: is_palindrome = name == name[::-1]
@neotix4323
@neotix4323 3 года назад
You are genious and this video deserv millions of likes
@FT4YOU
@FT4YOU 3 года назад
Apnar channel pawate onik help hoche. Love your channel man❤️
@ProgrammingHero
@ProgrammingHero 3 года назад
Glad to hear that!
@SLEDGERSoftwareCompany
@SLEDGERSoftwareCompany 2 года назад
Wow.. great video.. ❤️🎂👍🎉
@SimonLam2024
@SimonLam2024 2 года назад
Awesome video!
@SanjaySanju-xu9jq
@SanjaySanju-xu9jq 3 года назад
Impressive ❤️
@SLACKSIRE
@SLACKSIRE 3 года назад
Outstanding video! As an upcoming developer, these tips are going to completely change the way I write code
@ProgrammingHero
@ProgrammingHero 3 года назад
Glad it was helpful!
@DineshVaidyaOfficial
@DineshVaidyaOfficial 3 года назад
Awesome tutorial and a big wow.... I just subscribed your channel... Thanks...
@aleksk885
@aleksk885 2 года назад
love the energy
@mahinshahriar9147
@mahinshahriar9147 Год назад
Thank you ,,,
@codersintheocean
@codersintheocean 4 года назад
We need this type of tips and trics regularly ' Take my love sir❤
@ProgrammingHero
@ProgrammingHero 4 года назад
thanks Hello World...stay tuned for more videos
@aakash2333
@aakash2333 3 года назад
Thanks thalaivare
@coderistan
@coderistan 3 года назад
Thankyou so much
@devvisoulia4652
@devvisoulia4652 3 года назад
before this video i didnt knew even one of them thanksssssssssssssssssss
@Imran_et_al
@Imran_et_al Год назад
বাই বিডিও ভালো লেগেছে, বেরি ইউসফুল...!
@moasunepkichu506
@moasunepkichu506 3 года назад
Awesome video, I really like the way you teach. One Question: In trick 6, If more than one number is repeated equally (for the most repeated number) then how to display them. Thank you
@wahabsonu7849
@wahabsonu7849 Год назад
Very awesome ❤️❤️
@sunitatanwar7866
@sunitatanwar7866 3 года назад
Ok ok I'm impressed and going to subscribe ......
@rajendranaik8734
@rajendranaik8734 3 года назад
Hello on trick 8 you can do the following code def add(*a): return sum(a) you have not to use for loop and keep track of the resultvariable
@DineshKumar-jt5tr
@DineshKumar-jt5tr 3 года назад
i known 7 of these.nice wrk man
@divyamarisetty6717
@divyamarisetty6717 Год назад
i know 7 of this tricks,Thank you
@praktisktethos8775
@praktisktethos8775 Год назад
very nice!
@coder2684
@coder2684 3 года назад
Awesome man
@krit_jain09
@krit_jain09 3 года назад
I shared even after Knowing!!
@archanachougule2488
@archanachougule2488 3 года назад
Great coder 🙌
@maxibrahim9043
@maxibrahim9043 3 года назад
Hey bro, thank you for the work and effort you put in your videos. man, I appreciate it. your a cool guy tho
@ajaymurugan6513
@ajaymurugan6513 3 года назад
every trick is very nice. keep post new videos hero
@ramarsivakumar8424
@ramarsivakumar8424 2 года назад
Nice and awesome
@shuvojitkar1927
@shuvojitkar1927 4 года назад
Thank you for sharing this awesome tricks! 💥
@ProgrammingHero
@ProgrammingHero 4 года назад
Thank you Shuvojit for checking out
@nafis.sadiq.2003
@nafis.sadiq.2003 4 года назад
Awesome tricks. Thanks for sharing this tricks
@ProgrammingHero
@ProgrammingHero 4 года назад
Thank you Nafis
@kishanmunjapara5216
@kishanmunjapara5216 3 года назад
Supppppeb video bro..💣
@vpl406
@vpl406 3 года назад
My friend recommended your channel ,its great to know unknown tricks.
@ProgrammingHero
@ProgrammingHero 3 года назад
Kudos to him! Welcome the the family!
@md.jashimuddin3364
@md.jashimuddin3364 4 года назад
অসংখ্য ধন্যবাদ।
@ProgrammingHero
@ProgrammingHero 4 года назад
You're always welcome, Jashim. ❤️
@baklol.0_0
@baklol.0_0 2 года назад
Thanks for such nice tips sir! Love from India ❤️❤️🔥
@ikichiziki87
@ikichiziki87 2 года назад
I didn't knew the first trick itself, gonna share this !
@ProgrammingHero
@ProgrammingHero 2 года назад
🥰
@mukundachlerkar8021
@mukundachlerkar8021 2 года назад
Nice pick
@debasreetripathy5962
@debasreetripathy5962 3 года назад
👍 Awesome tricks.
@ProgrammingHero
@ProgrammingHero 3 года назад
Thanks 👍
@code_with_tanny
@code_with_tanny 3 года назад
Thanku sir..keep making videos like this.. really helpful ❤️
@ProgrammingHero
@ProgrammingHero 3 года назад
Most welcome 😊
@time_capsul.e
@time_capsul.e 2 года назад
Superrrb video
@ibrahimdenisfofanah6420
@ibrahimdenisfofanah6420 Год назад
You're a genius
@mohitkumar-cm5nk
@mohitkumar-cm5nk 4 года назад
Make more videos on web development. This is awesome..
@ProgrammingHero
@ProgrammingHero 4 года назад
surely we will do ,stay tuned and keep practicing
@neotix4323
@neotix4323 3 года назад
And i am learning python from your app "Programming hero"
@sukhomoyb
@sukhomoyb 3 года назад
Awesome video indeed
@Jose-cf8ps
@Jose-cf8ps 3 года назад
Good content
@ProRaseL
@ProRaseL 4 года назад
Thank you for sharing this awesome tricks! 💥
@ProgrammingHero
@ProgrammingHero 4 года назад
thank you Pro Rasel
@sandeepsharma1645
@sandeepsharma1645 2 года назад
Awesome
@user-ttishere
@user-ttishere 7 месяцев назад
excellent
@saadachab8425
@saadachab8425 3 года назад
Good video, thank you very much
@ProgrammingHero
@ProgrammingHero 3 года назад
Glad you liked it!
@ernestlasten3730
@ernestlasten3730 3 года назад
Man, you are so great. How about a video on APIs with python? Can you do that?
@aminnima6145
@aminnima6145 3 года назад
You are amazing person.. Thank you
@ProgrammingHero
@ProgrammingHero 3 года назад
So nice of you
Далее
BUILD A MOUSE USING YOUR EYE - Python Project
28:11
Просмотров 175 тыс.
Meninas na academia
00:11
Просмотров 2,1 млн
кукинг с Даниилом 🥸
01:00
Просмотров 2,3 млн
50 Python Tips and Tricks for Beginners
43:22
Просмотров 65 тыс.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
5 Python tricks that will improve your life
9:13
Просмотров 561 тыс.
24 Hidden Photoshop Tricks Every Pro Must Know!
27:53
Просмотров 420 тыс.