r/learnpython • • Mar 19 '21

Python helped me get a job!

708 Upvotes

So some background: I'm an econs student who came to sg for my master's in applied econs- graduated back in June 2020 and tbh I wasn't exactly sure what I wanted to do. I got this internship offer from this crypto fund of funds based in London (quantitative investment side intern) and I just figured that I'll roll with it as well it helped pay the bills and would be a good learning experience while I look for work in sg.

Around 9 months later - I've automated all the data collection and management work for all our funds using python. Set up multiple scripts to do bunch of fund and market monitoring tasks while also setting up scripts to generate dynamic quant templates (bunch of financial metrics) pertaining to our fund needs. Eventually got offered a starting role as an investment analyst!

I was the only intern who could code and while I didn't have a full fledged finance background per se (all the other interns were finance majors), my python skills (albeit quite basic lol) helped me separate myself and add some unique value to the firm (it's a startup so a smaller team and no one else in the company can work with python/R)

I just wanted to thank this subreddit tbh. I don't post often but I lurk around alot. I know it's just the start and for everyone who's just starting to get into python - stick with it. It might take a while but once you actually do an actual project that's useful for your needs - you'll finally start feeling that your hard work is worth it!


r/learnpython • • Jun 11 '20

Coding sites for beginners like pythonchallenge.com

700 Upvotes

I am new to programming and just completed a foundation course in Python. I just discovered pythonchallenge.com. I was wondering what other sites are their to practice and learn coding.


r/learnpython • • Sep 02 '21

"Automate the Boring Stuff with Python" online course is free to sign up for the next few days with code SEP2021FREE

699 Upvotes

https://inventwithpython.com/automateudemy (This link will automatically redirect you to the latest discount code.)

You can also click this link or manually enter the code: SEP2021FREE

https://www.udemy.com/course/automate/?couponCode=SEP2021FREE

This promo code works for 3 days (I can't extend it past that). Sometimes it takes an hour or so for the code to become active just after I create it, so if it doesn't work, go ahead and try again a while later. I'll change it to SEP2021FREE2 in 3 days, and that code will work for another 3 days.

Some people in India and South Africa get a "The coupon has exceeded it's maximum possible redemptions" error message. Udemy advises that you contact their support if you have difficulty applying coupon codes, so click here to go to the contact form.

I'm also working on another Udemy course that follows my recent book "Beyond the Basic Stuff with Python". So far I have the first 15 of the planned 56 videos done. You can watch them for free on YouTube.

Udemy has changed their coupon policies, and I'm now only allowed to make 3 coupon codes each month with several restrictions. Hence why each code only lasts 3 days. I won't be able to make codes after this period, but I will be making free codes next month. Meanwhile, the first 15 of the course's 50 videos are free on YouTube.

Side note: My latest book, The Big Book of Small Python Projects, is out. It's a collection of short but complete games, animations, simulations, and other programming projects. They're more than code snippets, but also simple enough for beginners/intermediates to read the source code of to figure out how they work. The book is released under a Creative Commons license, so it's free to read online. (I'll be uploading it this week when I get the time.) The projects come from this git repo.

Frequently Asked Questions: (read this before posting questions)

  • This course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.

  • If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.

  • This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com

  • The 2nd edition of Automate the Boring Stuff with Python is free online: https://automatetheboringstuff.com/2e/

  • I do plan on updating the Udemy course for the second edition, but it'll take a while because I have other book projects I'm working on. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.

  • It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.

  • I wrote a blog post to cover what's new in the second edition

  • You're not too old to learn to code. You don't need to be "good at math" to be good at coding.

  • Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with. Check out /r/ProgrammingBuddies


r/learnpython • • Jan 28 '21

I FINALLY DID IT!!

699 Upvotes

After multiple attempts (over several years) to "get" Python, I finally did it: I built a function that is clean and useful for my job in Python.

You can find it here in a GH repo, and while I recognize it's super basic, the fact that I was able to write a program that does something just feels so good. This sub has been incredibly helpful in that process, along with ATBS by our lord and savior Al Sweigart.

https://github.com/jwblackston/bazan_lab_projects/blob/main/movingImagingFiles.py

Just remember if you're stuck, find the simplest thing like reorganizing thousands of files at work, and you will quickly open the door to Python magic.

*also, please feel free to make suggestions to this program! I recognize it's basic but in the spirit of learning, I would love suggestions to make it more clean or efficient for even bigger tasks!*

P.S. Wow! Reddit gold? That's a first for me. You all are so supportive and wonderful. I love this community - keep at it y'all!


r/learnpython • • Sep 15 '19

Anyone else learning Python to fill the time at a boring desk job?

697 Upvotes

Instead of squandering the hours of downtime at my bs job on mindless Redditing , I'm learning to code. Going great so far, and I get hours of practice every weekday,

It's like a reverse bootcamp, where I'm being paid to learn development.

Can't believe I didn't think of this sooner.


r/learnpython • • Jul 07 '26

Starting learning Python at 50.

692 Upvotes

50 yo.

No coding experience.

Wish me luck! šŸ¤ž

upd: BIG THANK YOU for the support and warm wishes! Truly, words cannot express how much this inspires me!


r/learnpython • • Jun 26 '25

I'm a 40 year old Truck Driver learning Python, my thoughts so far...

689 Upvotes

I have spent most of my free time over the last year learning Python, C++, HTML\CSS, and taking a very basic cybersecurity course. I have finished my first little project. It's an email monitor/auto response that's tied to a website that I wrote in Python. And I feel like as a noob that programing is more about knowing where to find and how to read documentation rather than knowing the code. It makes me feel like an imposter. Is that normal? Does that change over time? Are there any coding practices that I can do or do I just need to keep coding things?


r/learnpython • • Dec 14 '20

Don't forget to take care of yourself

688 Upvotes

This post is more about learning programming globally, than python specifically, but I think it fits in well here, because python is so easy to jump into, as compared to C, Java, etc.

Computers are just tools, nothing more. They're the descendant of the abacus and calculator. They can do some pretty wild stuff like massive online multiplayer games, but fundamentally, they just receive, act upon, and deliver information from one to another. Most people experience computers from graphical user interfaces (GUIs); drag, drop, copy, paste, etc. -- it's all an abstraction of receiving, acting upon, and delivering information. Programming is simply a means to explicitly instruct a computer how it should perform these processes.

Many Bootcamps, Udemy classes, YouTube series, etc. don't discuss it in these plain terms. They often advertise an identity not functional mastery of a tool. "Become a web developer in 6 weeks, master the latest framework in python/JS/whatever, work remotely from a beach, be financially intendent." Sound familiar?

But after these sort of courses, bootcamps, etc. you find that there is so much more to learn; data structures & algorithms, for example. It's not some modular skill you can just pick up over an afternoon. It's a lifelong pursuit. And this causes people to react in one of two common ways: (A) Conclude their learning prematurely, simply unaware of how much they don't know or (B) Become obsessed with mastering the craft and put the rest of their personality on hold. And endless leet code / hacker rank quest begins.

It's unhealthy to put your entire identity into programming. You'll never "master" it. Computers are just tools to explore ideas and programming is just a vehicle to manage the specific exploration of these ideas. We'll never stop having new ideas and so our understanding of computers and programming will always change and evolve.

As someone who worked his way into a ~semi big name DS role, I really thought "making it" would complete me. But to be perfectly honest, I just feel exhausted from putting my hobbies and personal relationships on hold. I'm not saying a career in DS/SWE/etc. isn't worth pursuing. But be mindful that these careers are not identities/personalities; they're just specific approaches to programming, which is a specific approach to using computers, which is in itself just a specific usage of a tool.

This post really wasn't meant to discourage you. Rather, I just want to encourage everyone to take a little more time for themselves; don't forget to cook, exercise/meditate, maintain friendships/relationships, etc. This road might have a beginning but it certainly doesn't have an end. You're simply building familiarity with a tool as long as it suits the problems you want to solve.

"Everything in moderation, including moderation" - Oscar Wilde


r/learnpython • • Jan 31 '19

I've officially started to automate parts of my job today and it feels incredible

687 Upvotes

I'm a lifelong network engineer, and before November of last year I never coded or scripted a damn thing in my life. I knew python could be used for all kinds of tasks and I had been wanting to learn it since about 2016 but stayed away due to intimidation and time constraints.

In November I got hooked on codeacademy's python course and subscribed, and supplemented it with CBT nuggets' python course. Bought Automate the Boring Stuff on amazon (which is always open and in front of my face while coding) and just started practicing concepts as laid out in the book.

Today I successfully built a python script that SSH's in to groups of routers/switches and gets information from them, checks the information for certain values, and outputs me a list of compliant devices in a .txt... Last week i built a script that ingests 2 differen excel documents and compares them and alerts me of discrepancies between them. It took a bit of effort, but the reward has already been enormous, its amazing!

The best part is i can use all of these little functions I've built in other, larger ways later on. Python has seriously empowered me not only in doing things for me, but in the belief that i too could achieve such knowledge apply it to my daily grind, that i too could achieve greatness!


r/learnpython • • May 04 '20

Why "a is b" returns True if they both equal 200, but returns False if they equal 300?

683 Upvotes

The following code would return True:

a = 200
b = 200
a is b
> True

But the following would return False:

a = 300
b = 300
a is b
> False

Why is that? What is happening under the hood? I know the switch happens at 256 -> 257 which seems odd at first sight (why not 255 -> 256?).

EDIT:

Never mind, I found the answer. For those interested:

Python caches small integers, which are integers between -5 and 256. These numbers are used so frequently that it’s better for performance to already have these objects available. So these integers will be assigned at startup. Then, each time you refer to one, you’ll be referring to an object that already exists.

https://realpython.com/lessons/small-integer-caching/


r/learnpython • • Sep 16 '20

I just found out I've been copying lists wrong all along.

677 Upvotes

In order to explain this, assume we have two lists: some_numbers and other_numbers, where

>>> some_numbers = [1, 2, 3, 4, 5]
>>> other_numbers = some_numbers

Many beginners would make a copy of some_numbers and store it in other_numbers, as I did above. However, what you might not know, is that when you do that you actually tell Python that they are the same list. So if you tried to add an item to some_numbers and then print(other_numbers), you'd see that the output will include the item you added to some_numbers. i.e.:

>>> some_numbers.append(10)
>>> print(other_numbers)
[1, 2, 3, 4, 5, 10]

If you wish to have two independent lists, where adding an item to one doesn't change the other, use this instead:

>>> some_numbers = [1, 2, 3, 4, 5]
>>> other_numbers = some_numbers[:]

Now, you can change the lists independently.

>>> some_numbers.append(10)
>>> other_numbers.append(20)
>>> print(some_numbers)
>>> print(other_numbers)
[1, 2, 3, 4, 5, 10]
[1, 2, 3, 4, 5, 20]

Edit: As mentioned in the comments by several people, the more readable option for copying is

>>> some_numbers = [ 1, 2, 3, 4, 5]
>>> other_numbers = some_numbers.copy()

r/learnpython • • Jan 11 '20

Automate the boring stuff DOES work

676 Upvotes

I had been fiddling with the language for a bit until a reorganization recently changed my role.

I went from ā€œjack of all tradesā€ data engineer/ support guy / DBA to site reliability engineer. My new boss tasked me to automate all the boring stuff I was in charge of so I could focus on my new engineering duties.

In over a month, my code has gotten more succinct and effective. Things ā€œclickā€ now as I see real world applications for it.

All I want to say is don’t despair. Yeah things can be tough and confusing but it helped me to apply the language in my job. Automate the boring stuff, people!!

Hang in there. You got this.

PS: I am still a newbie, no doubt.

EDIT: a word.


r/learnpython • • Jul 10 '20

Started Learning Python 4 months ago... Developed a lane suggestion program today

673 Upvotes

I wanted to make this post to motivate those who don't believe in themselves. You can do it, trust me. I started learning programming for the first time about four months ago, when quarantine started. I had no prior knowledge about the subject. In fact, I didn't even start learning how to code as I had some some great interest in it -- rather, I just wanted to do an activity where I could ignore the world around me and just focus on the task at hand. Being a guy who suffered from generalized anxiety disorder and had severe impostor syndrome about math, I would have lost my mind if I didn't find that relaxing hobby.

But I found Python. I started studying each day for at least two hours. And I started falling in love with the art.

Today, 4 months after that day I started, I completed my first "big" project: A lane suggestion algorithm named "Crappy Lane Detection." My program takes the video of a road and suggests a path for a car to to travel on like this. I even made a github for it, so that people could check it out and verify that I indeed did it. It really works guys, I actually did something cool. It feels amazing.

Now, to my main point of the post. If I could learn the skills needed to do this in four months, you can too. If I, a high school kid with severe anxiety and impostor syndrome, could do it, you can too. So go out there, build up your dreams, your crazy ideas; I know you can do it.

EDIT: Clarifying the title, I started learning Python 3, four months ago. No, there is no Python 4... yet

EDIT 2: Woah, this blew up pretty significantly. I'm overwhelmed by all the positivity I'm seeing, I'm so glad i was able to help motivate you guys :) And thank you, kind stranger, for the gold!


r/learnpython • • Jul 12 '21

Wrote my first program, fixing a Windows 10 bug, yay!

666 Upvotes

Hello everyone,

I did it, reddit.

As a translator I work with three languages, so I constantly need to switch between them. Unfortunatelly, Windows 10 has a bug where the hotkeys for different languages get randomly reset, meaning I had to set these hotkeys up again several times a day, every day for the past half a year.

I had zero experience in programming and completed one guide on python prior to creating the project in Pycharm on July 7th, and today on July 12th I've compiled a working version of my script. With it I send a command to Powershell to set the desired input language whenever I press the same hotkeys as I'm used to, while the script is running in the background. It's quite an improvement in my quality of life. When I've first launched my program and realised it works, it felt soooo satisfying.

The community here is absolutely great, I feel I can ask a question and it will be answered within 30 min. I believe this has been one of the best parts of my programming experience so far.

Cheers :)

Edit, link to the source code: https://github.com/spc-dg/input_language_switcher/blob/main/source_code.py


r/learnpython • • Mar 21 '20

Pro account for Codecademy free for students due to COVID-19

664 Upvotes

Currently a Pro account on Codecademy is free for anyone with a student email

Edit: As users in the comments have confirmed, you can use any fake email as long as it ends in .edu to sign up. The pro membership lasts 90 days


r/learnpython • • Jul 11 '19

I wrote a script that downloads all your reddit saved items, and can be viewed based on subreddit. I would love feedback.

664 Upvotes

I'm not very new to programming but, started python this month by doing Automate the boring stuff. (author posted the free course a while ago here).

This script uses PRAW an amazing python wrapper for Reddit API. (kudos for that).

Why did I write this? Reddit is the best thing on the internet (at least for me). I've saved a lot of content but rarely had the time to go through everything. Even when I did it way harder to find posts.

Also, Reddit has a 1000 save limit.

So decided why not give it a go?

Github: link

This is how it works:

  • Download/Clone the files

  • Edit the config file (more info on Github Readme)

  • Install pythonv3.x and pip install PRAW

  • Run the batch file or open the python file and compile.

  • (Make sure to put assets(CSS and JS files) in the folder created, if it doesn't automatically copy them)

feedback/ suggestions/ critique's.

Also: Code is a clutter(Can't help with it)

Known issues can be viewed on Github Readme.

EDIT: For those who asked me to post a screen recording, r/learnpython does not allow to post links/videos so you can view it here

EDIT 2: CSS, JS file can be edited for much cooler designs. I'm not good at that so bear with me.

Also, it's easy to add options like is_NSFW, is_Gilded and many more. Incase you need anything don't hesitate to ask.


r/learnpython • • Nov 17 '21

I made a Tic-Tac-Toe game with 3642 lines of code and I'm sorry.

657 Upvotes

I posted on this subreddit asking for help on a tic tac toe game that was 3642 lines of code and I got flamed (in a good way).

Thank you.

I had sculped an effigy of inefficiency and I have been ushered into the world with a fresh perspective. I did my best and reduced the code by a factor of 10 to 380 lines of code. It most likely can be cleaned up further but it did the job.

Here's the code. I believe it is impossible to beat. Give it a try, if you win tell me.

Thanks for the help guys.

https://github.com/M0pps/Tic-Tac-Toe.py.git


r/learnpython • • Oct 13 '21

A beginner's take on Codewars, and why you should be using it.

653 Upvotes

I'm a beginner - I've only gone through the first eight chapters of Automate The Boring Stuff.

I've often seen Codewars mentioned on here, but I was far too intimidated to even think of solving problems with the little knowledge I had. But I also didn't feel like diving into the next chapter of ATBS so gave it a shot.

I've learned an amazing amount in the past week I've been solving these problems (or katas, as they're called there).

So if you're a beginner, here is my advice from a fellow n00b:

- Don't be intimidated! The katas start off fairly easy; if you've been able to solve the practice projects from ATBS then the easiest katas shouldn't pose too much of a challenge

- It feels really good to apply your knowledge and solve real problems. It's a great middle step between learning syntax and starting to create your own programs.

- You'll learn a lot. I know not everyone follows ATBS, but you'll learn a lot of really interesting , easier, and more intuitive ways to rework your code that go beyond that book. I'm pretty sure the same can be said for most introductory courses as well. Once you've completed your kata, you can view solutions from other users.

- Don't be put off by the answers performed in one line. At first it annoyed me and made me think I'm doing an absolutely terrible job if my 50 lines of code can be condensed into one, but apparently it's just something called code golfing, where brevity is prioritized over readability. I find it often better to sort answers by "Best Practice" instead of "Clever" to get more helpful answers. Granted, you should look for ways to make your code more efficient, but don't think you have to strive to condense it into a single, hard to understand line.

- After you've completed a kata, look through the solutions and strive to improve at least one aspect of your own answer, even if it's something small. For example, instead of writing out [1,2,3,4,5,6,7,8,9,10], I recently learned this can be also done with list(range(1,11)).

- Unless you love to make your eyeballs scream in pain like a vampire exposed to sunlight, don't press the crescent moon icon at the top.


r/learnpython • • Feb 10 '21

My ebooks on Python intro and regular expressions are free for a week

650 Upvotes

Hello!

I recently self-published my ebook titled "100 Page Python Intro". This book is a short, introductory guide for the Python programming language suited for those who have prior experience with another programming language. To celebrate, I'm giving away several of my books for free until 17 Feb, 2021.

Ebook links

Web version and GitHub repo

You can also read the book online here: https://learnbyexample.github.io/100_page_python_intro/introduction.html.

The https://github.com/learnbyexample/100_page_python_intro repo has program/example files, markdown source and other details about the book.

Feedback

Hope you find my books useful and fun to learn from. As always, I'd highly appreciate your feedback. Please do let me know if you spot any error or typo. Happy learning :)


r/learnpython • • Oct 15 '19

NSFW, selenium program I wrote today was the most fun I’ve ever had programming NSFW

645 Upvotes

I wrote a program that opened the chrome web browser, went to google.com, typed hentai porn into the search bar, submitted the search, then opened up the first video. I may not get a lot of upvotes for this program, but ive never laughed so hard while programming. If anyone wants the code I will gladly share it.

Ps. The CSS selector has the word ā€œchildā€ in it. If I could change the internet to remove this, I would. No one will go to jail for running this code. This is not loli stuff.

Edit: By popular demand, here is the code

from selenium import webdriver


driver = webdriver.Chrome(r'C:\Users\jorda\OneDrive\Desktop\chromedriver.exe')  # Optional argument, if not specified will search 
path.


driver.get('https://www.google.com');


 # Let the user actually see something!


elem = driver.find_element_by_css_selector('#tsf > div:nth-child(2) > div.A8SBwf > div.RNNXgb > div > div.a4bIc > input')


elem.click()


elem.send_keys('hentai porn')


elem.submit()


elems = driver.find_element_by_css_selector('#rso > div > div > div:nth-child(1) > div > div > div.s > div > div > a:nth- 
child(1)')


elems.click()


elems1= driver.find_element_by_css_selector('body > div:nth-child(8) > div.content > div.block-video > div.video-holder > 
div.video-info > div > div.info-buttons > div.rating-container > a.rate-like > i')


elems1.click()

r/learnpython • • Jul 14 '21

Follow up from I automated my job and now I have to present it to my CTO

640 Upvotes

https://www.reddit.com/r/learnpython/comments/gix1qt/i_automated_part_of_my_job_and_i_now_have_to/

Ā 

TLDR: Follow-up from my post a year ago asking how to present and automation to my CTO, he shits all over it and me in front of 15 people as he feels I made some big security oversites/attacked/insecure/didn't have time. I decide to move to a tech-start up I get a 27k raise, I asked for 45k and they gave me 50k because in my new company people with my skills i.e Python are typically on 50k! I then drop some key takeaways from my learning.

Ā 

Long version Ā 

So about a year ago I made this post explaining that I had made a script to automate part of my job potentially saving my business about 360 hours a year. Sorry it took me so long to follow up but here's the story.

Ā 

I presented the script to my CTO from start I got bad vibes the atmosphere was a bit tense there were a lot of people on the call and my CTO is from America along with the rest of the Dev team and I'm the UK meaning I had no relationship with anyone.

Ā 

I showed off my script and of course I started having connection issues meaning my screen share was cutting in and out which took up about 15 minutes of the hour I can see my CTO was getting pissed off. Eventually, I got the script running it went well and worked perfectly.

Ā 

The CTO didn't say anything for a while whilst the other devs asked me some basic questions such as what language is this? How long have you been coding? What packages did you use? Whilst also saying that they were impressed that I had built the script in such a short time. Then the CTO finally spoke up and said "So those files you were uploading the data output looks like real names to me? Why have you got company data on your personal laptop?" barring in mind I couldn't install Python on my work laptop I had used data from the company and like an idiot hadn't made it into dummy data.

Ā 

I quickly apologised and he took the opportunity to go in on me, he completely undressed me in the call in front of everyone taking the time to explain to me why having company data on my laptop was so bad and told me to delete every single piece of company data I had whilst share screened in front of 15+ people. Barring in mind the data was only first name + first initial + email address hardly credit card details. He then asked me if my username and password to access my company website was stored in my script in plain text, I said yes because they were and he could clearly see that. He then spent another 15 minutes raising his voice explaining lamenting how dangerous that was and how my packages could be stealing that data (barring in mind I used Pandas, numpy, selenium, xlsx writer all very known packages).

Ā 

By this time the meeting was essentially over and I was massively deflated. My boss who supported me said that she will speak to my CTO as it wasn't right the way he spoke to me in front everyone.

After my boss spoke to the CTO he agreed to review the script, I sent it over to them and ultimately I needed their help hosting the script on the company website. After weeks of not hearing anything I chased them and they simply messaged back "sorry we don't capacity to work on this project right now"

Ā 

I was pissed off I'd spent probably over 100 hours on this script by this point working obsessively, I decided to start searching for a new job.

Ā 

I put my Python experience on my cv and a modified version of my script on GitHub and started applying for new jobs in Tech Startups where I felt innovation and automation would be appreciated. I started getting loads of feedback and interviews, interviews I felt were honestly outside of my pay bracket and grade. The Python script gave me confidence, skills and something to talk about, interviewers in some companies really, really value a self-starter who is going to work smarter not harder.

Ā 

In the end, I managed to get an Operations analyst role with a tech start-up getting a massive £27k pay rise. It's so crazy how it happened to, my manager told me I got the job and asked me how much money I was looking for. I said £45k and she said well actually I want to bring you in on £50k as that's how much people with your skills in this company are paid! Like that is insane and shows how much value the Python skills I had picked up meant and how creating a script means your interviewers really believe that they can invest in you as you will go out of your way to learn new skills to push my role to its limits.

Ā 

For anyone looking to do automate a task at work here are my key takeaways: Ā 

  1. DO IT! Even if the company don't implement your automation, I learnt so much more working on my project than I did watching tutorials or from coding books. You can't beat real-life problems and the motivation to solve the problem is 10x'd when it really matters. Being able to put it on your CV is worth its weight in gold too when it comes to negotiating wages.

Ā 

2) Look to automate something that is completely self-efficient. Ultimately I had embarrassed my CTO but automating something he and his team should have done years ago, so of course, he wanted to block my script the fact my automation needed to be host on the company website/intranet means he could easily block it by saying his team has too much work to do. Work on things that you control completely, make it hard for them to say no!

Ā 

3) Always use dummy data don't be stupid like me and put company data on your work laptop and if you do when it comes round to showing your script pls use dummy data and delete the data.

Ā 

4) Don't get your hopes up, I was so deflated by the rejection and harsh treatment by my CTO but you have to understand that devs and managers often have massive egos and seeing an upstart come in and write code that potentially makes them look bad means that will block your initiative out of spite, jealousy or because they don't trust you. Be prepared for rejection and have adequate responses for reasons why you think they would dismiss the project.

Ā 

4) If your business doesn't value your automation look to move to a tech start-up tech-startups love automation they will give you the access you need to make a change and enable you rather than block you. Moving to a tech startup is the best move I've ever made and I don't see myself working for a massive corporate entity ever again.

Ā 

5) Don't put your username and password in plain text in your script! this massively tripped me up and I had no response to my CTO when he called me out on this. Use something like python keyring library to encrypt your login and password so no one can catch you out as they caught me.

Ā 

6) Attach a dollar value to the time saved this meant that my direct line manager manager couldn't ignore it and could see the value instantly


r/learnpython • • Dec 18 '20

I've been coding in Python for 8 months, and I've never used a class. Is that bad?

640 Upvotes

I feel like I've never been in a scenario where I've had to use classes, or maybe I just don't know how to use them / where to use them / when to use them.

Can anyone give an example of where they would use a class, and why they're using it?

Update: 130 days after I made this post I made my first class. I did not realize how useful they are, like holy moly!!!


r/learnpython • • Sep 17 '20

Automate your daily tasks with Python

640 Upvotes

Hey.

I recently saw someone advertise that they'd be willing to help some lucky folks with automating their daily tasks.

With 8 years experience under my belt and having worked on numerous projects, I want to give back and help others. After all, that's what makes the world go round.

Please drop below some tasks that you carry out on the daily that could be automated - and, I'll help you.

Edit: there’s a whole bunch of stuff to get through, I’m not ignoring you guys. I’ll get round to you all. I’m working on some stuff now for some people, and even being paid to do it too :D thank you so much for your positive response guys, I’m so glad I can be helping some of you!!


r/learnpython • • Jun 12 '23

Going dark

631 Upvotes

As a developer subreddit, why are we not going dark, and helping support our fellow developers, who get's screwed over by the latest API changes? just asking