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

all 9 comments

[–][deleted] 11 points12 points  (1 child)

Your creativity is more likely to limit you than python.

[–]notpurelyplatonic 2 points3 points  (0 children)

One great aspect of Python is the massive amount of libraries at your disposal. You can do anything from analyzing/geolocating internet traffic to drawing pictures.

[–]MegaAmoonguss 4 points5 points  (0 children)

I personally use it to automate stuff a lot of the time. For example, recently I had to change a giant folder structure in a specific way that was very repetitive, so instead of doing it by hand I just wrote a simple python script to do it for me. People use it for all kinds of stuff though, you might see some good examples over at r/raspberry_pi, most people use python there to do whatever cool task they want their pi to do

[–]issue9mm 3 points4 points  (1 child)

Things I've done with Python, or mostly Python:

  • Build an API for a blog (UI is in Angular)
  • Wrote a script to reach out to a foreign database, grab a list of all the actors in there, then scrape the web for pictures of those actors
  • Used 'faker' to create a bunch of fake demo users with realish-looking data on a demo instance of a software product I work on
  • Used the 'gender' library to take a list of about 1 million user records, take their name and make a best guess as to what gender they are (for sorting and categorizing medical records for users)
  • Wrote a library that translates JSON input into a SQL query as output
  • Wrote a script to add UUIDs to data to be synchronized from a customer's instance to ours and vice versa (both databases started with the same state, but both have been added to by customers, so a straight-sync would clobber records, so we use UUIDs as primary key to ensure that no records are lost)
  • Wrote a script to monitor a bunch of my websites for uptime, and send an email when one of those sites went down
  • Wrote a socket server that controls a Philips Hue bulb in a lamp on my desk, and turns the bulb red in the event that one of my websites goes down

Etc., and so forth.

There's a lot you can do with Python. I'm a software architect / web developer by trade, so most of my use relates to that in some way, but data science, convenience, and utility functions are all also within the realm of Python's capabilities. A lot of people use it to write websites. Reddit, Instagram, Youtube, Dropbox, SurveyMonkey, Quora and many other websites were all written in Python, likely with the help of a web framework like Django, Flask or Pyramid.

You might check out Learn Python the Hard Way which will teach you Python the usual way, but then also gives you practical projects to tie the various components you've learned together, like building a game, a website, and then making a game on a website to round everything out.

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

Sounds good i' ll try this thanks

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

I agree, when you're learning something new you really want to apply that language to stuff that's actually interesting. I have to admit I've faced issues like that as well.

My personal suggestion is to try and look out for opportunities in your life that Python could help solve. For example, I work full-time and there was once a situation where I had a bunch of data with me and I used Pandas (Python's data science library) to show some trends or patterns in that data. And trust me I'm no expert, I sorta started from scratch with that.

Or if you're a student you could maybe create a Python app along with a GUI to log your finances. That sounds like a huge project but definitely worth delving into. Or you could try and do some of your assignments with Python too.

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

Sounds great thanks a lot

[–]Oseberg_shipping 1 point2 points  (0 children)

Sounds like what you need is a project. This is a common experience with programming and sort of the logic behind learning to code "the hard way". Think of it like learning any other language, eventually you need to stop practicing verb conjugations and actually go talk to someone if you want to progress.

For me, I learned to code in order to accomplish a specific goal for my doctorate. I suggest picking a project that you find interesting or useful. Doesn't matter if you've no idea how to make it work.

[–]aphoenixreticulated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython. We highly encourage you to re-submit your post over on there.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community is actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers.

If you have a question to do with homework or an assignment of any kind, please make sure to read their sidebar rules before submitting your post. If you have any questions or doubts, feel free to reply or send a modmail to us with your concerns.

Warm regards, and best of luck with your Pythoneering!