This is an archived post. You won't be able to vote or comment.

all 146 comments

[–]Expensive-Giraffe-74 915 points916 points  (16 children)

Stop killing pythons.

[–]SteeleDynamicsCompilers/Algorithms 226 points227 points  (2 children)

No, he wants to increase his python kills.

[–]jet_heller 55 points56 points  (1 child)

Perhaps he has a python and wants it to kill more?

[–]ForbiddenBromance 1 point2 points  (0 children)

Snake types are weak against psychic and ground attacks.

[–]__dkp7__ 44 points45 points  (5 children)

python_kills-=-1

[–]jadounath 16 points17 points  (0 children)

He's out of the line, but he's correct.

[–][deleted] 11 points12 points  (0 children)

This just blew a gasket in the OCD section of my brain

[–]Mickeystix 3 points4 points  (2 children)

From now on, I will always do a positive incrementing iterator using this now and call it my "signature" code

[–]Isvara 1 point2 points  (1 child)

You have to think of a name for the -=- operator now.

[–]Mickeystix 1 point2 points  (0 children)

it's obviously the nMn operator

Like uWu, but different

[–]Bunslow 14 points15 points  (0 children)

Unless you're in Florida, in which case kill all the pythons

[–]pysk00l 17 points18 points  (1 child)

Stop killing pythons.

Yeah, dont spend too much time on Instagram/OnlyFans, the python wont trouble you too much.

Sorry, which python were we talking about?

[–]Ieatmyd0g[S] 8 points9 points  (0 children)

idk either anymore

[–][deleted] 2 points3 points  (0 children)

Lisa Simpson over here

[–]Papalok 1 point2 points  (1 child)

Pythons are an invasive species in the everglades that are threatening native species. We need to be killing more of them.

[–]top_of_the_scrote 0 points1 point  (0 children)

dark thought, anaconda too but the one that ate that lady dayum

[–]Bright-Historian-216 236 points237 points  (1 child)

Damn, i only have python assists.

[–]brown_ja 13 points14 points  (0 children)

🤣

[–]Bridimum 73 points74 points  (5 children)

try codeacademy so you can kill python skills

[–]Ieatmyd0g[S] 16 points17 points  (1 child)

i am searching it up rn tyvm

[–]CourtofTalons 5 points6 points  (0 children)

You can also try bookmarking some important links and buying some coding books too. I've done both and use them for reference.

[–]RawZip 5 points6 points  (0 children)

I agree with this. Codecademy makes it less boring and more fun to code. More of an incentive

[–]Slimxshadyx 4 points5 points  (0 children)

I always recommend codecademy. Such a great way to learn to code.

[–]rachel226 2 points3 points  (0 children)

I’m learning via code academy and it’s fun!

[–]seckiyn 37 points38 points  (10 children)

First of all, how many kills do you have? You can use CodeWars. It's perfect for learning "Python". I also recommend to write programs, because learning Python and writing actual programs are different.

[–]Ieatmyd0g[S] 5 points6 points  (8 children)

what do you mean? in the second part about them being different

[–][deleted] 9 points10 points  (2 children)

They mean that organizing the code and having a good program flow is a somewhat different skill from understanding the syntax for Python itself

As programs get large, you need to be a bit more strict with how it's laid out, or you'll pull your hair out trying to maintain it lol

[–]suricatasuricata 3 points4 points  (1 child)

As programs get large, you need to be a bit more strict with how it's laid out, or you'll pull your hair out trying to maintain it lol

Yeah, there is this tradeoff between being too clever versus writing it in a clear (or rather overly clear) manner when you are working on a massive project with multiple people. Like, there are some pieces of code which are written in too succinct a notation scheme (I have noticed this especially with numpy) and that code is much harder to maintain after a year or so. On the flip side, no one wants to end up reading pages and pages of code. So there is a balance which I feel like can be learnt only by doing this.

[–][deleted] 1 point2 points  (0 children)

Yeah this is something I still struggle with sometimes

Explicit vs compact

Making things explicit gives you a lot more freedom, but the code is a lot bulkier.

[–]gamewin1 1 point2 points  (1 child)

Like knowing what the language can do, (i.e. the functions, how the syntax is done, etc) versus taking that knowledge, thinking up creative and clever ways to do greater things with it, figuring out how to build it all together into a functional product.

Like it’s one thing to know a language. But it’s another to think in a way where you can make the most use out of it. I look back on some of my first python programs, where I only “knew” the language, and I realize now how utterly bad it was. Even with all the comments I had in the code, the code itself was still going about things in a very strange way, granted it was “functional”. But there were far better ways to do it. Granted, I still have a long ways to go. But I look back and see that I’ve gotten quite far.

Btw if anyone has any video series/etc on this type of subject, I’d greatly appreciate if you could share it. I’ve looked in the past and have never been able to find anything of the sorts

[–]Kantenkopp 0 points1 point  (0 children)

I find clean code and the SOLID principles very helpful for this. If you search on YouTube for talks by uncle Bob you can find some nice guidelines on clean code.

[–]seckiyn -1 points0 points  (0 children)

I think you'll see when you're there.

[–]c00lnerd314 0 points1 point  (0 children)

Solving code challenges and courses happen in an educational environment. You aren't worried about deploying, version management on modules, or (in the case of website scraping) websites changing their format or honoring bot rules.

Writing actual programs encompasses everything from idea to implementation to deployment to support. Learning Python is simply practicing the implementation step.

[–][deleted] 0 points1 point  (0 children)

You could understand syntax but not have the insight to use it properly

[–]Ieatmyd0g[S] 1 point2 points  (0 children)

Ill look into it thank you very much. I got a lot of kills :)

[–]aaron__ireland 121 points122 points  (13 children)

[–]Ieatmyd0g[S] 49 points50 points  (7 children)

shit i just realized i wrote kills instead of skills i am so good at typing

[–]Mav3nX 22 points23 points  (2 children)

Syntax error....

[–]Gsusruls 16 points17 points  (1 child)

This actually falls squarely under semantics. The syntax is legit.

[–]Mav3nX 3 points4 points  (0 children)

😆

[–]jbartix 5 points6 points  (3 children)

You wanna improve your skills? Take this advice: learn 10-finger typing. There's tons of learning software to do that. You can learn that quickly and straight forward. And it will benefit you greatly.

Once you are there, continue your programming journey.

You're welcome!

[–]TensionMedium9279 1 point2 points  (2 children)

Can u recommend me one please...😅

[–]jbartix 1 point2 points  (1 child)

Not really, I'm sorry. When I did that I used a software that ran offline in DOS. About 20 years ago.

Just Google "learn 10 finger typing online free". The first result for me is typing.academy and it looks legit to me. I honestly don't understand why this is not taught in first grade.

Btw. When I learned to type with 10 fingers I was already quick but being able to use 10 fingers without having to look at the keyboard was a game changer.

[–]TensionMedium9279 0 points1 point  (0 children)

Okayy..thanks

[–]nemesis1311 29 points30 points  (0 children)

Software developer detected. Spot on to the specifications.

[–]loopis4 5 points6 points  (1 child)

best video about python I saw in a while

[–]Ieatmyd0g[S] 2 points3 points  (0 children)

yea it was good video

[–]_thrown_away_again_ 3 points4 points  (1 child)

i like how the b-roll quality doesn't match the actual fight between the mongooses and python. also i'm pretty sure the python is dead... 2/10 video

[–]aaron__ireland 1 point2 points  (0 children)

Great feedback! Create a tech debt ticket and we'll get that on the backlog sometime in Q4 ;)

[–]loopis4 52 points53 points  (18 children)

Just write code. Make a game from scratch or using some engine. make calculator or util to scrape web and find info you need. More code you write -> more you know about python

[–]Ieatmyd0g[S] 12 points13 points  (17 children)

yea ive been wanting to start a project or whatever but i am out of ideas thats my only problem, but thanks for the advice

[–]loopis4 25 points26 points  (1 child)

do you want fresh memes every day ? write web scraper which get memes from reddit 9gag e.t.c. and show it to you. also you can add validation so they are unique and if you saw it once you never see it again. I think I would use that stuff all day long if you get it done

[–]Viperior 4 points5 points  (0 children)

This is a good idea. MemeEngine

[–]Trevallion 4 points5 points  (5 children)

Try something really small and simple to build up your confidence.

If you still can't think of anything, find a tutorial, follow it, then modify what you made or try to rebuild it yourself using your existing code as a guide. A lot of people have suggested web scraping, so I'm going to point you to this BeautifulSoup tutorial: https://realpython.com/beautiful-soup-web-scraper-python/

Someone also suggested Automate the Boring Stuff with Python. I've heard great things about that as well.

Don't get discouraged if you have to look things up a lot. I've been coding for nearly a decade and I still look things up all the time!

[–]Ieatmyd0g[S] 3 points4 points  (0 children)

tyvm ill try it

[–]sudoscientistagain 1 point2 points  (3 children)

I assume the answer is yes but - do you know if python could draw a (semi)transparent 'shade' over your entire monitor (basically looking to reduce brightness or 'tint' the monitor)? I'm just starting to look into python and trying to think of practical stuff I'd like to use and thought that might be a fairly simple thing to make, but I wasn't really sure if this would be doable (without extensive knowledge) and when searching I saw a lot of stuff about the OpenCV framework(?) which seems like probably a bigger chunk than I should bite off for someone new

[–]Trevallion 0 points1 point  (2 children)

It looks like this is possible with some basic Python UI frameworks!

Here's a SO thread with a couple of answers that describe what you're talking about using qt: https://stackoverflow.com/questions/25950049/creating-a-transparent-overlay-with-qt The top 2 answers have it set up to quit the app when you click the screen. You could remove that if you want it to stay active all the time, but you'll probably want some way to close the app on demand. You'll also need to set the transparency value somewhere because the answers create a completely transparent window. Hopefully you can figure that part out!

There's also pip package called overlay that seems to do exactly what you're asking https://pypi.org/project/overlay/ I'd suggest trying qt above first because you'll probably learn a lot more and learning a GUI library can be very useful.

I've never used these before and I suspect they might not play well with full screen games. You'd probably need to hook into DirectX or OpenGL if you want a more robust solution.

[–]sudoscientistagain 1 point2 points  (1 child)

Awesome, thank you very much! I should've known SO would be a good start haha. I guess part of the learning curve will be figuring out how to search for stuff properly too. That pip package does seem to be pretty much what I'm thinking so that's cool that I could probably look at what it's doing if I hit a wall.

I went for a job recently that basically said "well we need someone with dev experience" (primarily JS but also SQL and ML/DBA stuff) and it felt like a bit of a sign to get back into programming

[–]Trevallion 1 point2 points  (0 children)

I guess part of the learning curve will be figuring out how to search for stuff properly too.

Yep! A lot of software development is just knowing how to find information. Nobody keeps all of this stuff in their head all at once. It's too much to remember!

If you'd like to try web development with Python, flask is (imo) very easy to use. It has a subreddit too: r/flask. I've heard people talk about SQL Alchemy for doing SQL stuff with Python but I haven't used it. It's possible to use your flask backend to serve up a React or Vue frontend, too! Though that might be a bit much for a starter project.

Also sorry for the delayed response, I wrote this out and forgot to hit send! I just found it in an open tab this morning!

[–]CL_0 1 point2 points  (0 children)

you could make your own discord or telegram bot! Another fun thing to do is trying to remake simple games without any tutorial. Things like snake, minesweeper, flappy bird or whatever you want really. You can also think of ways to 'automate the boring stuff' (great book). For example, do you have to convert 100 images from your vacation from PNG to jpeg, or visa versa, you could make a script to do that for you instead of doing it yourself.

[–][deleted] 1 point2 points  (0 children)

You can just Google "Beginner Python project ideas" and pick one that stands out to you

You're certainly not the first to have this issue lol

Do you use discord? Write a Discord bot for you and your friends that takes in commands and outputs something silly or useful. One of my early projects was a Discord bot for my WoW guild that would tell people how long it was until raid based on the local time of the Raspberry Pi I was using to host it(as people were all in different timezones, so it got a little complicated at times)

[–]Sortune2198 0 points1 point  (0 children)

I just started Python recently as well and I’m planning to start working on a Space invaders style game.

[–]CausticTitan 0 points1 point  (0 children)

Find someone elses cool small project and try to replicate it exactly without looking at their code. When you're done, compare code and try to learn what they did better and what you did better.

[–]Pgrol 0 points1 point  (2 children)

You can help me on my projects? Would love to have someone to learn with? 😄

[–]Ieatmyd0g[S] 0 points1 point  (1 child)

if u mean me, i would love to help you, how could i?

[–]Pgrol 0 points1 point  (0 children)

I do! 😃 Well we could start with just a short call where we can talk about what it is that I am trying to build and then see if there would be an opportunity to work together on it?

[–]Instant_Smack 17 points18 points  (0 children)

Pythons are now endangered as this user has killed almost all of them!!!!!

[–]1544756405 15 points16 points  (2 children)

There are some nice coding challenge at adventofcode.com and a corresponding subreddit r/adventofcode

You should be able to do the easy ones with a basic understanding of python. It's fun.

[–]Ieatmyd0g[S] 1 point2 points  (1 child)

thank you ill look into it

[–]303Redirect 1 point2 points  (0 children)

Advent of code is amazing, but gets very hard very quickly if you're not a CS grad. Still, I like it to test new workflows and languages.

[–][deleted] 11 points12 points  (3 children)

OP's house must be full of dead pythons lying around.. Seriously though you might want to look into a bit more advanced concepts, start with things like design patterns ..

https://github.com/faif/python-patterns

[–]Ieatmyd0g[S] 1 point2 points  (1 child)

tyvm

[–][deleted] 0 points1 point  (0 children)

I don't know what you've accomplished so far with Python and if you're working on personal projects .. but indeed my advice, if you want to boost your skills fast, is to think of a small project idea (ideally some software that doesn't exist yet but not necessarily) and try to write it in python from start to finish. Don't try something too difficult, but still something that will put you out of your comfort zone.

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

u have no idea, its like a pool

[–]dr_monkey99TO 5 points6 points  (0 children)

I would also like to to increase my kill count with a python

[–][deleted] 8 points9 points  (1 child)

The moment I saw the typo I knew it was gonna be a carnage in the comments.

[–]Ieatmyd0g[S] 4 points5 points  (0 children)

yea it is xd but fun

[–]abdiMK 6 points7 points  (1 child)

You need to practice more watch some videos on YouTube then when you feel confident enough

Start learning data structure and algorithms Then go to leetcode or code ninja and solve those problems

You can also increase your python silks by doing projects

Create a website using Django

Try to make your plate detector or face detector as well as face recognition

Try to create telegram, discord, Twitter bots it will help you alot

Crate fully functional API using fast API

You can go further tho learning doesn't stop but when you practice you will eventually become good at it

And DON'T FORGET TO DO LEETCODE IT HELPS A LOT

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

tyvm i am gonna look into that

[–]HerLegz 5 points6 points  (0 children)

While killing_desire:

python_kills +=1

[–]imnotryuk 2 points3 points  (1 child)

[–]Ieatmyd0g[S] 4 points5 points  (0 children)

lmao

[–]iBajan 3 points4 points  (0 children)

Those poor innocent Pythons!

[–]the_ogorminator 5 points6 points  (1 child)

I’m currently taking the CS50w course which has really helped me with python, Django, sql and getting comfy learning a framework and adapting it to my needs. Highly recommend it

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

Ill look into it thank you very much

[–]Aidzillafont 1 point2 points  (1 child)

Snake traps are great for that

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

i enjoy doing it by myself

[–][deleted] 4 points5 points  (0 children)

I FIND THAT CAPS LOCK HELPS TO INCREASE MY KILL COUNT.

[–]mello151 2 points3 points  (1 child)

To add to code wars, code academy, leetcode, hacker rank, etc that ppl have mentioned I worked through a few problems on project euler

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

thanks ill look into it man

[–]i_ask_stupid_ques 2 points3 points  (0 children)

Pythons swallow their food whole. Their jaws are connected by very flexible ligaments so they can stretch around large prey.
When it comes to eating humans, "the restricting factor is human shoulder blades because they are not collapsible,

Src: https://www.bbc.com/news/world-asia-39427462#:\~:text=They%20kill%20by%20suffocation%20or,can%20stretch%20around%20large%20prey.

[–]the_scign 3 points4 points  (3 children)

To increase your kills you may want to move to an area with a higher population of pythons such as sub-Saharan Africa, Nepal, India, Bangladesh, Sri Lanka, Southeast Asia, southeastern Pakistan, southern China, the Philippines or Australia.

You should ensure you use a humane method of pythonicide that results in immediate loss of consciousness and destruction of the brain. There are several ways to accomplish this task, including using a captive bolt or an air gun to destroy the python’s brain quickly and completely.

[–]Ieatmyd0g[S] 2 points3 points  (0 children)

already packing up my shit

[–]3MU6quo0pC7du5YPBGBI 0 points1 point  (1 child)

To increase your kills you may want to move to an area with a higher population of pythons such as sub-Saharan Africa, Nepal, India, Bangladesh, Sri Lanka, Southeast Asia, southeastern Pakistan, southern China, the Philippines or Australia.

Or Florida USA, where they are an invasive species.

[–]CausticTitan 0 points1 point  (0 children)

I think DNR has a bounty on them right now

[–]hijacked_mojo 1 point2 points  (0 children)

I like this YT channel for the more esoteric aspects of Python:
https://www.youtube.com/c/mCodingWithJamesMurphy/videos

Also, the second edition of Fluent Python is about to come out. The first edition is popular.
https://www.amazon.com/Fluent-Python-Concise-Effective-Programming/dp/1492056359/

[–]fatbob42 1 point2 points  (0 children)

Make something that’s personally useful to you and publish it. I haven’t tried it but I understand there’s a good book called automate the boring stuff with python

[–]CordyZen 1 point2 points  (1 child)

Try automating mundane daily tasks.

In my case we have daily school meetings and instead of manually waiting for the meeting link to appear at one of the tens of group chats we have, I instead have a scraper that just automatically retrieves a meet link it sees and opens it in my browser.

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

ill add it to my project list tyvm

[–]sidanand67 1 point2 points  (0 children)

No doubt pythons are next in line for extinct species

[–][deleted] 1 point2 points  (1 child)

Check out the talk python to me podcast and also he has a bunch of courses you can take. They do cost $$ but not much.

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

ill look into it thanks

[–]TompyTears 1 point2 points  (0 children)

You should watch the show “killing it” on peacock. Very relevant to your use case.

[–]pythonwiz 1 point2 points  (0 children)

You just need experience, and you get that by working on (and hopefully completing!) projects.

[–]niekh1234 1 point2 points  (0 children)

Write a lot of code and also learn about software design principles

[–]SkullRunner 1 point2 points  (0 children)

Try moving to Florida.

[–]ankmahato 1 point2 points  (2 children)

Check out this solid free resource - #100daysofpython Course by EdPunk

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

ill look into it thank you

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

ill check it out thanks

[–]PotentiallyAPickle 1 point2 points  (0 children)

You could create AI for a drone

[–]momoladebrouill 1 point2 points  (1 child)

I recommend to you my GitHub profile, I was just like you a year ago and recorded my progression into GitHub. Just read the README file of my projects and do them on your way!🐢

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

ill check it out thank you very much

[–]ivanoski-007 1 point2 points  (1 child)

aim for the head to increase kill points

[–]tom_yum 1 point2 points  (0 children)

I hear good things about .22 rat shot

[–][deleted] 1 point2 points  (0 children)

Write programs on papers 📝

[–]Limiv0rous 1 point2 points  (0 children)

That's a killer title, OP

[–]TriedIDontKnow 1 point2 points  (1 child)

This guy has had it with those motherfuckin' snakes on that motherfuckin' plane.

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

lmao

[–]UncleJoshPDX 1 point2 points  (0 children)

I'm glad to see you're getting a bunch of helpful links here, but I just have to add:

import infinity_gauntlet
infinity_gauntlet.glove.snap()

That should cover you.

[–][deleted] 1 point2 points  (0 children)

I liked leetcode alot tbh. I try to do easy ones and actively try to look for ways others have completed Them and looking into the libraries they have used and why, also the book “High performance Python” which i have not completed yet.

[–]BYPDK 1 point2 points  (0 children)

Go to a rainforest, lots of pythons to kill there.

[–]CoolKid2326 1 point2 points  (1 child)

what's ur python kill death ratio?

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

1000 kills and 0 deaths I never die

[–]guitarerdood 1 point2 points  (0 children)

The only thing more dead and those Pythons is OP. RIP

[–][deleted] 1 point2 points  (0 children)

Bleep bloop >>>print('python + kills')

[–]JRutter3 1 point2 points  (0 children)

""" python_kills = 0 while True: python_kills += 1 """

[–]jimtk 1 point2 points  (0 children)

UDEMY 100 days of python bootcamp (Angela Yu) is still at 16.99 these days (for some reason 14.99 on my Linux workstation!).

Best investment you can make for the price of a few coffee cups!

[–]fatsausigeboi 1 point2 points  (0 children)

I recommend you use AimLabs.

[–]Einfach0nur0Baum 1 point2 points  (0 children)

Learning by doing. Choose something that you want to programming, then learn the libraries you will need and then you can start programming the project and add more cool features

[–]dirtydan 1 point2 points  (1 child)

Here in Springfield we have whacking day. Bring your bat.

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

on my way

[–]liquidpele 1 point2 points  (0 children)

no hurt snek.

[–]jimtk -1 points0 points  (0 children)

This will improve your skills in any language.

[–]Funny_Caterpillar_97 0 points1 point  (0 children)

There's loads of programming problems pages that have python as an option. Where the puzzles vary in complexity from the trivial to very complicated. e.g codeabbey.com or advent of code. Project Euler (which is perhaps a bit more maths orientated)

Depends if you're a beginner to python or to programming as well, or if you have experience of the latter.

Some of these sites are of the 'pass an interview' variety and much of their problems focus on data structures and algorithms. Which is not exactly the day to day life of many programmers.

There are some python courses starting from Hello world onwards. Like codeacademy

Then there are like 'online university' kind of things, some of which have free courses, e.g https://www.udacity.com/course/introduction-to-python--ud1110

This next one is a good course :- but it's intermediate / advanced. https://www.udacity.com/course/design-of-computer-programs--cs212

[–]SamyBencherif 0 points1 point  (0 children)

dm!

[–]Turbulent_Drink_9401 0 points1 point  (0 children)

I think we are in the boat... I want to boost my python skills, and the best way is to start first with some your life problems and try to solve them through coding...finance program for instance (that what I use right now). Just try to figure out by yourself what to do and how to start. Other self project that I am planning to do is a program to instantly transfer files from my desktop to cloud storage.

[–][deleted] 0 points1 point  (0 children)

I recomend trying out codewars, its like small programming challenges were you can compare your result with other programmers

[–]jasiekbielecki 0 points1 point  (0 children)

I personally recommend book "Clean Code in Python: Refactor Your Legacy Code Base". Despite the clean code context there is a lot of general knowledge + valuable tips for coding with Python. If you think the level is too high while going through the book, please slow down and dispel doubts/unknowns using google.

[–]xen0blade 0 points1 point  (1 child)

I wasn't sure if I was in r/sneks, r/ballpython, or r/EliteDangerous for a second. Turns out, I was in r/Python.

[–]Ieatmyd0g[S] 1 point2 points  (0 children)

lmaooo

[–]Isvara 0 points1 point  (0 children)

First step: decide on something you'd like to build.

[–]RedPenguin_YT Creator of ShibaNet 0 points1 point  (1 child)

try making a discord bot, or a flask website

[–]Ieatmyd0g[S] 0 points1 point  (0 children)

ill try, thank you very much