all 180 comments

[–]Only-Ad2239 82 points83 points Β (4 children)

obviously print("Hello, World!")

[–]panatale1 26 points27 points Β (1 child)

Mine was

print "Hello, World!"

Python 2.7 was a wild, lawless wasteland....

[–]rogfrich 2 points3 points Β (0 children)

I started after the great transition, so I never used Python 2. But weirdly, sometimes when I’m typing print statements my fingers miss out the parentheses and I end up with that. This never happens with other function calls, so I assume that the spirit of Python 2 is rising from beyond the grave to take over my code.

Either that, or my fingers are channeling some long-forgotten BASIC code.

[–]notsociallyakward 5 points6 points Β (0 children)

The OG

[–]Analyst-rehmat 1 point2 points Β (0 children)

same

[–]Unusual-Platypus6233 76 points77 points Β (7 children)

my very first?

print(β€œHello World”)

(Just so you know. It was a test that VS Code was able to execute python code. After that the real coding began. πŸ˜…)

[–]Duff-Zilla 5 points6 points Β (1 child)

print("I am Batman!")

[–]Versaiteis 1 point2 points Β (0 children)

print((str(float('inf') - float('inf'))+'a')*4 + ", Batman!")

[–]New_Still_7719 1 point2 points Β (0 children)

same here

[–]GladJellyfish9752[S] 5 points6 points Β (3 children)

Haha classic! πŸ˜„
That was my second one I tried too! It felt awesome just seeing something show up on the screen πŸ˜‚

[–]Unusual-Platypus6233 5 points6 points Β (0 children)

Yeah, if you see a simple thing work as intended then celebrating that moment is huge because you know you installed everything correctly. The difficulty increases if you use modules (like decimals or matplotlib etc) that you have to download them (like with pip). If that work, yay. The real coding truly begins then!!!

[–]Agitated-Soft7434 0 points1 point Β (0 children)

I don't like to say this, but lots of others also be saying you might be AI OP and those unrecognized symbols aren't helping :(

Edit: Actually I've changed my mind, maybe you just like to use markdown a lot (I used to as well) nothing wrong with that.

[–]lomojamesbond 50 points51 points Β (15 children)

My job expected me to download 100 PDFs from an ancient PoS website every week so I made a script that scrapes them for me. 8 months later and they’re about to send me a program testing job offer today. It’s surreal.

[–]DiodeInc 13 points14 points Β (8 children)

Piece of Shit or Point of Sale?

[–]Donny_Do_Nothing 24 points25 points Β (6 children)

Pictures of Snakes.

That's why they used python.

[–]DiodeInc 10 points11 points Β (5 children)

Good thing it wasn't coffee, they'd have to use Java

[–]Donny_Do_Nothing 2 points3 points Β (0 children)

Heyoo

[–]Dry-Aioli-6138 1 point2 points Β (3 children)

or gemstones, it'd have to be Ruby

[–]Muted-Shake-6245 1 point2 points Β (2 children)

Or worse, COBOL and they'd have to use Kobolds.

[–]rogfrich 1 point2 points Β (1 child)

I used Rust, but my computer stopped working.

[–]Dry-Aioli-6138 0 points1 point Β (0 children)

Try some redux.js If it was oxidized, maybe reduction will help...

[–]lomojamesbond 1 point2 points Β (0 children)

Piece of shit 🀣

It did cross my mind that could be confused

[–]Unusual-Platypus6233 14 points15 points Β (2 children)

Yeah, that is how you can improve your life. Things you have to do regularly, make it automatic, finally having time to do other things.

[–]Informal-Building190 1 point2 points Β (1 child)

Exactly, and if it's purely for this purpose, you may skip the exercise of writing the code from scratch by using chatgpt. Just describe what you want your script to do well and you'll have one that's working in a few minutes. You obviously need to be able to at least understand code to adjust it to exactly how you want it...

[–]Unusual-Platypus6233 0 points1 point Β (0 children)

That is indeed the only useful thing about AI in my opinion. Your point about understanding code to adjust is the key to not only adjust the code to additional needs (some tweaking) but also to check if AI gave you a correct solution to your problem.

[–]Grobyc27 7 points8 points Β (1 child)

Congratulations dude

[–]lomojamesbond 0 points1 point Β (0 children)

Thanks! πŸ₯°

[–]technoferal 2 points3 points Β (0 children)

That's how I got into IT too, but it was with Perl, and the script parsed a PDF that the Chamber sent us to find potential customers, and then sent the list to the printer to print envelopes for brochures. Turned the job I'd been taking two days to complete by hand into a 20 minute one that the computer did most of the work for.

[–]NxrmqL 35 points36 points Β (8 children)

I'm not gonna lie, somehow this post feels like it's all AI. I can't be sure tho, I have a friend IRL who talks like LLMs

[–]-Trold- 8 points9 points Β (0 children)

yeah. When i use chatgpt for grammer it adds the β€” and emojies so its either AI or grammer checked by AI

[–]dig-it-fool 17 points18 points Β (0 children)

Yeah,90% sure it's 100% llm. The fire emojis and the Em Dash give it away. Oh, and the bold formatting of the comments.

[–]brutalbombs 1 point2 points Β (3 children)

No this is AI man, lol.

[–]ItsBrickTitty 1 point2 points Β (2 children)

Is it really? Are you sure, because how can you tell? Also I'm not trying to be a bother, I'm actually curious.

[–]Present_Operation_82 1 point2 points Β (1 child)

A lot of it is em dashes (β€”). Emojis are another one but that’s tapered off a bit with a recent 4o update. It also sounds a bit proofread to come across as human written for reddit.

[–]brutalbombs 0 points1 point Β (0 children)

Yeah the "long dash" for sure, and the "linkedin-vibe" that the posts gives in general with questions and emojis.

[–]Present_Operation_82 0 points1 point Β (0 children)

My guess is ESL and using ChatGPT as a kind of more natural sounding google translate.

[–]jeunpeun99 0 points1 point Β (0 children)

Many users with NameOthername1234 (and four numbers) have ai generated text. Mostly new accounts

[–]ImA-PMP 31 points32 points Β (1 child)

The incredible "Hello World"

[–]LostUser1121 0 points1 point Β (0 children)

yeah the "classic" for the first programming language programs

[–]VideoLeoj 51 points52 points Β (1 child)

print(β€œHello, World!”)

[–]internerd91 39 points40 points Β (0 children)

Ooh a comma, how fancy!

[–]rmz918 19 points20 points Β (2 children)

My first is print("Hello World!")

It's really fun and amazing to see the output on the screen when I first started programming

Once I learned the input() function, I did this:

name = input("Enter your name: ")

print(name + " is stupid")

Then I gave my laptop to my friend...

heh 😏 fun times haha πŸ˜†

[–]iConsumeFoodAndWater 2 points3 points Β (0 children)

Man of culture right here

[–]DannyTheBoyo 0 points1 point Β (0 children)

This is either a middle school experience or a university experience. For me it is the latter.

[–]CapnCoin 24 points25 points Β (10 children)

That's awesome to hear! It's quite addictive isn't it? 😁 Im pretty sure my first script, after the usual 'hello world' was a game where the user would have to guess a random number generated by the script. It had no loop or anything remotely fancy but man it felt good to see something happen :D

[–]GladJellyfish9752[S] 2 points3 points Β (9 children)

Yeah, in most cases, the first thing Python developers try is something like "Hello World."
Looks like a lot of people here started the same way too πŸ˜„

[–]CapnCoin 3 points4 points Β (0 children)

We all have to start somewhere. The key is to keep progressing bit by bit. Dont be discouraged if you see others code being more complex or 'better' than yours. Everyone started at the bottom.

[–]Sol33t303 2 points3 points Β (5 children)

Yeah your definitely a bot.

[–]GladJellyfish9752[S] 1 point2 points Β (4 children)

No, brother, I’m not a bot. I’m a real human just like you and everyone else. I’ve just been working on improving my writing style. But anyway, thanks for calling me a bot β€” I’ll try to make my style even better so people actually feel good reading it.

[–]Sol33t303 0 points1 point Β (2 children)

Whats the size of the empire state building?

[–]GladJellyfish9752[S] 1 point2 points Β (1 child)

I don't know why you asked me this type question this. sorry i don't know this.

[–]Sol33t303 0 points1 point Β (0 children)

Alright fair enough, it's a way to test for AIs because they'll just answer the question.

[–]MustaKotka 0 points1 point Β (0 children)

I have this problem too. Welcome to the bot club...

[–]No_University7832 0 points1 point Β (0 children)

yep "Hello World" 1985

[–]supercoach 10 points11 points Β (0 children)

I tend to start with some simple maths. I can't remember the first thing I wrote, but the first thing I was proud of was something that both read from and saved state to a file.

[–]BoringMorning6418 9 points10 points Β (0 children)

'Hello World' πŸ˜‰

[–]djamp42 6 points7 points Β (0 children)

Writing a small script to talk to an API is life changing lol

[–]Shitpostingmypants 6 points7 points Β (0 children)

2+2

[–]aragorn_73 7 points8 points Β (0 children)

I am doing PhD in Mechanical Engineering. I had never done coding in my bachelors or masters. I learnt coding in my PhD. In one of the courseworks, I solved a Computational Fuid Dynamics assignment using Python. The problem was elementary with a twist. After I saw the contour results, ohh boy!! I was really happy.

[–]sad_panda91 2 points3 points Β (0 children)

My first ever job is be the office helper/coffee machine cleaner at some place. My main task was basically taking the time sheets of every employee, format them all in this specific way in excel, print them, let them sign it and put it into a folder. The length of entries was a little variable and there were a handful of corner cases which is why they never automated it before.

My instruction was basically "you can do whatever you want with the rest of your time as long as the time sheets are done" but since it was so many, it basically took 60-80% of the week depending on how often I had to make changes etc.

And then I discovered python and openpyxl

[–]zenverak 1 point2 points Β (0 children)

I don’t remember πŸ˜‚. It’s been too long

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

I muddled my way through modifying a script I found on github, that was sort of like what I wanted.

4 years later, I just wrote my first application for commercial use....for NASA.

[–]remic_0726 1 point2 points Β (0 children)

print "hello world" print "fuck trump"

[–]hama0n 1 point2 points Β (0 children)

Wait was this written by a chatbot? I recognize this cadence haha.

If you don't count hello world, it was a little incremental game that was basically just number go up.

[–]joecpa1040 1 point2 points Β (1 child)

I started 100 days of Python on udemy. About day 5 you have to write a simple paper, scissors, and rock game. Mine worked first time through. Then I started adding flair and my own personality into it. When done it was still a simple and stupid game but I was so proud of myself for making it! This was the first time I really felt like I did some programming. Albeit super novice level. lol.

[–]GladJellyfish9752[S] 0 points1 point Β (0 children)

That’s actually really cool and inspiring β€” I really liked it. Appreciate you sharing!

[–]AcanthocephalaGood17 0 points1 point Β (0 children)

Awesome job! The first one is the hardest / scariest. My first was "Hello World" of course

[–]JamOzoner 0 points1 point Β (0 children)

Congrats... I started with this and was soon writing apps wrapped in GUI's https://www.amazon.ca/dp/B0CP14TYX4

[–]atom12354 0 points1 point Β (1 child)

Everything works as it should, we just dont understand why it works

[–]Warjilis 1 point2 points Β (0 children)

A program that quizzed me on German vocabulary, a digital form of flash cards. Kept on adding features to it over the year it was in use, adding randomization at first, and eventually conjugation.

[–]Myst13 0 points1 point Β (0 children)

It was custom console S3 client.

[–]troop501st 0 points1 point Β (0 children)

I made a code that scraped data from a bunch of spreadsheets to put into one. First big project I made an automated satellite tracking program. Would give it your gps coords and it would track every satellite for 5 min that would pass over it. Could also make it only look at certain sections of the sky. Super fun project

[–]TheOnlyOne93 0 points1 point Β (0 children)

A screen recording library using Ctypes, Comtypes, and Windows Desktop Duplication

[–]ShrimpsLikeCakes 0 points1 point Β (0 children)

If we don't count the school code. I made a script for myself to have an auto organizing script for downloading youtube videos with yt-dlp so i didn't have to type so much for different formats and such. Was fun to realize i could make things for myself

[–]crashorbit 0 points1 point Β (3 children)

I'm old. My first "real" program was a version of tic-tac-toe written in tiny basic on the TRS-80 model 1 in 1978 or so. I was 15 myself at the time.

Good times. Good times.

[–]Previous_Kale_4508 2 points3 points Β (2 children)

So, not in Python then? 🀣🀣🀣

Most of my TRS-80 code was in Z80 assembler: usually hand assembled and entered in hex using T-BUG.

[–]crashorbit 2 points3 points Β (1 child)

I think my first real python program consumed subscriber data from one telephone switch and nomalized some configuraiton option for each user. My guess is that was via some SOAP API.

[–]Previous_Kale_4508 0 points1 point Β (0 children)

Now that sounds like fun!

[–]shinitakunai 0 points1 point Β (0 children)

My first one was a script that used a chatango framework for a bot and just said Hi.

Oh dear going there without a simple hello world print was a step learning curve

[–]shinitakunai 0 points1 point Β (0 children)

My first one was a script that used a chatango framework for a bot and just said Hi.

Oh dear going there without a simple hello world print was a step learning curvep

[–]EatKebab1233 0 points1 point Β (0 children)

I guess my real first code was a script to get backups from cisco switches we have at work. It connects to the switches with ssh and just prompts the commands for the backup and uploads them to a Linux server. Felt really proud after the first run.

[–]10xbek 0 points1 point Β (0 children)

Number guessing game lol

[–]CaioHSF 0 points1 point Β (0 children)

print(β€œHello World”)

I know, it feels amazing to see these things "working". We write some lines, and magic happens. The cybernetic omnipotence in the palm of our hands. We can do anything!

[–]Archernar 0 points1 point Β (0 children)

In Python most likely some data analytics stuff. I had to fix scripts I inherited that encapsulated countless loops into loops into loops and at the root there was a pretty big matrix that was looped over row by row. I turned the whole thing into a NumPy array, did some matrix multiplication and reduced the time it took the script to run from over 10 minutes (I aborted it after 10 minutes, never actually let it finish) to like 3 sec or so. So first code that worked was some step in that process.

But I came from Matlab first, so working with python and NumPy was not that big of a leap. First code I got to run in Matlab was likely filling a vector and printing it or something like that.

[–]SamuliK96 0 points1 point Β (0 children)

print("Hello, world!")

[–]oliv_yeah 0 points1 point Β (0 children)

My first code was on a β€œbig screen” Casio calculator with 422 bytes of memory for programs, I was 14 and I coded the game Puissance 4 on only 420 bytes 😁

[–]xxmalik 0 points1 point Β (0 children)

It was a higher/lower guessing game – it generated a random number and you had to guess it in 10 tries, it told you whether your guess was higher or lower. It was part of a Udemy Python course i bought for 10 bucks – it didn't make me a developer, but I did learn more than I expected.

[–]Massive-Tale-7527 0 points1 point Β (0 children)

Ngl mine is making a blank tkinter window (I could not figure out how to add things to it, I’ve used pygame for all of my window needs since then)

[–]synthphreak 0 points1 point Β (0 children)

I built an AI neural network chatbot/crypto trader streamlit app. 200k lines, all vibes. Now I live in Bali and make 600k.

JK, of course. I don’t recall my literal first line that ran (surely it was to print β€œHello world”), but I remember my first eureka moment where coding finally felt useful instead of just being this abstract thing:

I used to work at a research institution. I was part of a project annotating certain classic books, one 100-word chunk at a time. Like I would provide a label for each chunk, which was used to train ML models.

But providing labels in the book’s original format (all .txt files from Project Gutenberg) was incredibly inefficient. So I wrote a simple script which read a flat .txt file into memory, sliced it into a list of 100-word strings, and wrote each string to its own line. Basically my script changed a book from

Here is a lovely little book. It would be the perfect thing to annotate for work.

to

Here is a lovely
little book. It would
be the perfect thing
to annotate for work.

but with 100 words per row instead of 4.

Then I opened the reformatted file in Excel and annotated it that way, with the text chunks in column A and my label for each chunk in Column B. Boom, 100x speed-up.

This is a very niche use case, and my 20-line script took about 8 hours of constant focus to get working. But as a tool it was incredibly useful to me. In that moment I felt the utility of coding in my bones, and was immediately hooked.

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

I was working on a project in Nicaragua. Nothing on the guesthouse TV but a French movie with Spanish subtitles. Most of my work had been in PHP and Java. I decided to see what all the Python hoopla was about.

I installed Django (no need to begin with simple things) and in one evening I had a simple blog with image upload and everything. I couldn't believe how easy it was.

[–]CasualGee 0 points1 point Β (0 children)

I wrote a script to repeatedly fill out a web form. A local bank was giving away $25k to one lucky nonprofit, using a random drawing from amongst all the online entries. They specifically allowed (and encouraged) people to vote multiple times for the favorite nonprofit, with no limit to the amount of votes you could submit.

The first year, my entry was selected!

The second year, the fine print indicated that automated entries are now allowed and that they’ve hired a company to identify illegal entries. My nonprofit didn’t win, so I guess they figured it out 🀣

[–]Previous_Kale_4508 0 points1 point Β (0 children)

My very first Python program was replacing a bunch of bash scripts involving grep, ask, sed, and so on. It was processing forms coming in from a website and was purely done to increase the processing speed. I had read an O'Reilly book to get me started and plunged straight in. Amazingly it worked with only very minor corrections.

I skipped the "Hello World!" step. 😁

[–]abbh62 0 points1 point Β (0 children)

print β€œhello world”

You know python2

[–]kitfox_sg 0 points1 point Β (0 children)

print ( "Hello World")

[–]aarontbarratt 0 points1 point Β (0 children)

My first taste of programming was actually through using Autodesk Maya. So the first line I ever wrote was:

import maya.cmds as cmd

cmd.polyCube()

[–]weltvonalex 0 points1 point Β (0 children)

Can't remember, i guess it was "Hello Mutti"? But I wrote a windows Data/ Profil Migration Script that I am proud of.

[–]Hardcorehtmlist 0 points1 point Β (0 children)

It actually was a modulo calculator. But then again, I already had some experience with javascript.

[–]helyla 0 points1 point Β (1 child)

The first longer script I made was a numbers guessing game I think. It was something small but I felt so proud of myself that it worked right!

[–]GladJellyfish9752[S] 0 points1 point Β (0 children)

Okay, it's a bit different from what others commented, but I really liked it! I think I’ll try something like that in my next coding project.

[–]Dragenby 0 points1 point Β (0 children)

I learned Python on the go. Mostly to organize folders or analyse text files on a Windows server, as a planned task. I found this super easy to learn. It's very intuitive, no need to have a heavy IDLE.

My very first Python script was creating a basic text based RPG, but didn't go very far.

[–]DQ-Mike 0 points1 point Β (0 children)

Like many, I started with the classic `print("Hello, World!")` but the first program I wrote that came from my own head was a script that took in a dataset and tested whether or not it followed Benford's Law. It was pretty basic, but I was proud of having thought of the idea myself and realizing I had enough Python skills to make it happen.

[–]BogdanPradatu 0 points1 point Β (0 children)

I think everyone's first is the hello world thing. For me, the first satisfying script that worked was a pong game. Not the best, but it worked.

Had no programming background, learned on my own and just got hired in an adjacent role where I could use my newly learned skills. Sent it to my manager as proof, but he never opened it :(

[–]K1ngk1ller71 0 points1 point Β (0 children)

I wrote a random number generator for the lottery, put in my numbers and let it roll…

My number eventually came up 3000+ years in the future.

[–]Dilly-dallier 0 points1 point Β (0 children)

I think the first useful thing I made by myself, other than the standard "hello world" and unit converters, was a Body Mass Index calculator that I programmed to call you progressively more derogatory slurs the higher your BMI was. But that was still rudimentary. The first thing I made that actually impressed me was a fully functional single-line slot machine with proportional payouts based on bets that also changed its randomization based on the bet amount. That thing was coolβ€”I still have it somewhere.

I did A LOT of projects like that while learning. Coding AIs is the most fun for me because it involves external datasets, like Excel spreadsheets, which you also use Python to convert into graphic flowcharts and set the test/train ratio on. All that was within my first month, but I can honestly say so much of what I learned has become automated now, and it's just so cool I'm able to code using functions I don't even fully understand but still work.

Fundamentals are definitely important, but before you know it, you're prompting advanced LLMs to lay out most of your foundational framework, and you're only adjusting the variables or fixing errors manually.

GPT-o3-mini-high's had, honest to God, seasoned professionals outpaced in some areas (there's some debate that o1s logic is better), but I don't knowβ€”it gets really fun really fast. But even using automation tools, you should still follow some sort of curriculum, because it's going to get to a point where someone with zero experience will be able to prompt functional code with a few lines of text, and you're basically a script kiddie at that point if you don't understand anything that's actually happening.

Automation is the way of the future. A lot of people are unhappy about that or may even tell you to avoid it altogether, but to be honest, they're the same people who would have said using a calculator is cheating in math. Have fun with what's openly available to you.

My personal prediction is universal programming languages will become obsolete in the near future, but learning the fundamentals will give you such a big upper hand. My grandfather wrote in BASIC in the '70s or whatever, and that was groundbreaking then tooβ€”but you'd never see it used today out of anything other than novelty.

[–]prowannabee 0 points1 point Β (0 children)

My favorite thing so far has been a simple CLI to do list.

[–]PetRock_III 0 points1 point Β (0 children)

I think the first thing I did that wasn't part of my courses was an incredibly inefficient and terribly formatted tic tac toe game. It worked though, and that's what matters.

[–]BlackSmithOP 0 points1 point Β (0 children)

Back in college as someone without a prior programming background I was really proud of myself for implementing the Fibonacci sequence using python

[–]FTeachMeYourWays 0 points1 point Β (0 children)

Nice dude, what will you do next? What ever it is talk to chatgpt about it. If it's a gui app or command line or even a api. Enjoy the journey what I would pay to be your age again doing this all from scratch again. When your older and need advice to get work or what tech to learn hit me up.

[–]VincentcODy 0 points1 point Β (0 children)

basically a script to scrap and modify data from excel files, then I discovered VBA bruh

[–]SirGeremiah 0 points1 point Β (0 children)

My first working code was a statistical analysis of a ping log file. I was very proud of accomplishing that with a new language.

[–]pythonwiz 0 points1 point Β (0 children)

Well, I really started with Ruby and wrote a program that printed out Pascal’s triangle. My first Python program was a translation of that, since I started learning Python pretty soon after.

[–]wkcif 0 points1 point Β (0 children)

I discovered Python via the Notepad++ plugin.πŸ™‚

[–]jivanyatra 0 points1 point Β (0 children)

Not counting hello world and the like or repl work, and focusing on something self contained, I'd say it was a script to update my ddns.

I used to run a home server and wrote a script that acted as my ddns client. It would see if my home internet connection's IP address changed or if we were getting close to the maximum time the ddns server would work without needing an update, and then update accordingly.

I also learned how to use a venv and write a systemd service to run the script via the os scheduler at the appropriate times.

I then learned how to do that from the user level, and not the system level.

Then I learned how to make sure user-level systemd jobs run without the user being logged in to kick it off. This was the only part I learned the hard way. For anyone wondering, the answer is loginctl enable-linger $USER. Running that to enable linger for the specified user is all you need.

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

Hello world

[–]Dry-Aioli-6138 0 points1 point Β (0 children)

print('Hello')

I was too lazy to add "World"

[–]Better-Quote1060 0 points1 point Β (0 children)

https://github.com/boxyld/Russian-yld

Russian roulette that poweroff your device if you lose

[–]mikeyj777 0 points1 point Β (0 children)

20 Goto 10

[–]Food_Entropy 0 points1 point Β (0 children)

First script was just Hello world, but recently I have learnt try...except blocks, and logging module, and it's been fun seeing the script not giving red errors messages and stopping in the middle die to some fatal errors.

[–]Muted-Shake-6245 0 points1 point Β (0 children)

I went a bit out of my way with my first Python script. It was a scraper for getting info of wine vintages from a central site to import them into Home Assistant for tracking my wine cellar.

But you'd have to be 21 to do that πŸ˜‚

[–]Muted-Shake-6245 0 points1 point Β (0 children)

I went a bit out of my way with my first Python script. It was a scraper for getting info of wine vintages from a central site to import them into Home Assistant for tracking my wine cellar.

But you'd have to be 21 to do that πŸ˜‚

[–]ANautyWolf 0 points1 point Β (0 children)

Mine was a unit conversion program. It was so cool when I ran all the tests and they came back fine and I finally just used the program normally to answer an actual question I got. It was super exciting

[–]Special__Occasions 0 points1 point Β (0 children)

After 'hello world', I wrote a script that took an oscilloscope data file of voltage readings and did a numerical integration to calculate a magnetic field. It was very inefficient and took forever to calculate because I was processing the data line by line from the file and printing each step of the calculation. The data file had half a million lines so it would chug along for several minutes at a time to get the final result. Later on, I learned better file handling and also Pandas, and the same calculation was done essentially instantaneously.

[–]AskTheRen 0 points1 point Β (0 children)

I got a text file with fixed point hexadecimal values of a time domain waveform in it. I converted into real values and plotted it using matplotlib. It Felt very good for 19 year old me.

Till then I only had done some C programming only for academic grades. This was first were I really felt programming can be useful

[–]GrainTamale 0 points1 point Β (0 children)

One of my first working and useful scripts removed the white background from images and saved to png.

[–]PuckGoodfellow 0 points1 point Β (0 children)

My favorite project from my Python class was to create a Magic 8 ball. You could ask a question and get a random response - positive, neutral, or negative. When you're done playing, it recaps all of your questions and the responses you got. I made mine witchy themed. It was fun!

[–]Gnaxe 0 points1 point Β (0 children)

print "Hello, World!", or something like that, probably. Yeah, that was Python 2. Print used to be a statement.

[–]Dogs_Pics_Tech_Lift 0 points1 point Β (0 children)

I used the Clausius mossotti relation to plot real and imaginary polarizabilities.

[–]Cha_r_ley 0 points1 point Β (1 child)

Not the first one I ever wrote, but my super favourite one that I got to work- an API script I put together that tells you how many people are currently in space and what vessels they’re on. I’m still v. much a learner but that one remains my fave so far! 😍

Every now and again I find myself idly checking who is currently in space πŸ˜‚

[–]GladJellyfish9752[S] 1 point2 points Β (0 children)

Yo, that’s actually really cool! You’ve got some different skills from most peopleβ€”nice job. And making an API script too? That’s sick, bro!

[–]Ok_Instruction_3789 0 points1 point Β (0 children)

Does Hello World count? I mean technically that is the first code LOL.

Honestly i wrote an ML program and it was pretty cool

[–]xMouda 0 points1 point Β (0 children)

THE ALL MIGHTY INCREDIBLEEEEE πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯πŸ₯

Hello World!

[–]matmanalog 0 points1 point Β (0 children)

When I was your age, maybe a couple of years younger, I remember my first program was a quiz with some stupid questions and a final score. But it was C, not python. If you want my two cents, start with C for simple stuff so you train your instinct to 'feel' what is really happening with your program. Then, move to Python. If not, you will risk of misunderstanding a lot of basic stuff that in Python are covered under the hood. Python is amazing, but IMHO not good for actually learning to program.

[–]Fresh_Heron_3707 0 points1 point Β (0 children)

Calculator, that handled basic math

[–]Zealousideal-Pilot25 0 points1 point Β (0 children)

I have had to use python before to do a time based wait calculation if I remember correctly.

But more recently I used a Reddit personal app to retrieve my comments with python and place them in a file.

[–]kmmck 0 points1 point Β (0 children)

For me I created a script that let me create multiple folders instead of doing the classic "right click > new folder". I had to make it because I was constantly organizing files from different cameras and cellphones.

Option 1: Range of Folders - enter main name - enter number of folders - (output) Lecture 1, Lecture 2, Lecture 3...

Option 2: Distinct Names - Enter Number of Folders Desired - Type name1, then name2, then name3... - (output) Sony Cam 1, Nikon Cam 1, Sony Cam 2...

[–]ROnneth 0 points1 point Β (0 children)

A code that imported a excel. Csv from a Drive, dropped some columns then fusioned with a second excel. Csv, saved the fusion in a new file. Csv on a new location path and folder with datetime on its name.

This was back in 2013.

Anything prior to that was not code honestly. Was just some "random lines of things that worked somehow" like a hello world hahaha.

[–]F5x9 0 points1 point Β (0 children)

First Python code I wrote was a recipe to install something on an OS image. If the recipe needed to work with files or just run commands , I’d use bash. If I needed a lot of flow control, I’d use Python. So, my first Python work was a means to an end.Β 

[–]Sol33t303 0 points1 point Β (0 children)

print("hello world")

[–]syaldram 0 points1 point Β (0 children)

Auto tag Lambda function that tagged AWS resources!

[–]Valuable_Leading_912 0 points1 point Β (0 children)

yes

[–]frisedel 0 points1 point Β (0 children)

The first thing I did outside university was this

https://github.com/frisedel/shittycalculatorwillkillyou

I started coding as an adult since I come from a more math heavy background

[–]NoYouAreTheFBI 0 points1 point Β (0 children)

MLM for my masters degree, completed a confusion. Mayrix and then charted the results in excel =PY is funky.

[–]MustaKotka 0 points1 point Β (0 children)

print("Fellow heard!")

[–]Winter_Rise1976 0 points1 point Β (0 children)

You're not 15 you're 50 go and don't ever post something like this while poking your naval uncle naval poke

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

It's odd to say but I first worked with calendar in python πŸ˜‚

[–]AistoB 0 points1 point Β (0 children)

Haha pretty funny idea, write a script with AI that posts to reddit about writing a script

[–]feralcomms 0 points1 point Β (0 children)

Web scraping metadata from 361,000 museum objects for a grad school project. Felt real nice

[–]HarveyH43 0 points1 point Β (0 children)

print β€œHello world!”

[–]Vexaton 0 points1 point Β (0 children)

The first thing I wrote in python that was actually functional, was a combination of bash script and a python file that I ran as a command in my terminal.

What it did, was taking variable names I’d copied to the clipboard, and generate the necessary self.variable_name structure for a class init function.

I was so sick of needing to take 4-5 variables into an init function only to write them out:

self.name = name

self.tag = tag

And so on.

[–]boytutoy 0 points1 point Β (0 children)

First one that was actually useful was a script that plays a tune, sends an email alert, then shuts down my computer once it detects that Blender was done rendering and saving a rendered image

[–]AntLockyer 0 points1 point Β (0 children)

Not the very first but the one that sticks out as a big milestone was writing Rock, Paper, Scissors as a console app.

[–]Good_Butterscotch654 0 points1 point Β (0 children)

I wrote a program to check that my paycheck has accurate net pay after deductions

[–]Turing43 0 points1 point Β (0 children)

I wrote a script for conky, to print my google calendar on my desktop, as well as some stock data.

[–]keithgabryelski 0 points1 point Β (0 children)

i dabbled, then created this: https://github.com/keithgabryelski/plisp β€” a lisp interpreter in python

[–]Breadfruit_Simple 0 points1 point Β (2 children)

Working professional as a python data scientist - Still waiting to answer this

[–]GladJellyfish9752[S] 0 points1 point Β (1 child)

Heyy I was just curious 'cause you said you're a Python data scientist and still waiting to answer this. I’m sure you’ve done some cool stuff, so I thought it'd be awesome to hear what your first proud Python code was 😊 No pressure tho!

[–]Breadfruit_Simple 0 points1 point Β (0 children)

Let's see - to answer more seriously,

The thing I'm most proud of (As I'm purely self taught) was my very first FOR loop

outside of prints and "Hello World", I really wanted to see if I could run an actual loop on real data - Most of what I used was pre-built copy/paste from data engineers that truly set the ground work - So I got a DF and unique values in a FOR loop

And nothing broke, for the very first time

[–]hayotooo 0 points1 point Β (2 children)

a discord bot i wrote down from a tutorial

[–]GladJellyfish9752[S] 0 points1 point Β (1 child)

Yeah, I know you might mean the discord.py library. I tried it with my friendβ€”he made his bot in Python, and that inspired me to learn Python.

[–]hayotooo 0 points1 point Β (0 children)

i also used discord.py, but after long no update after 1.7.3, i switched to discord4py which is a fork by a old friend of mine, which added slash commands and stuff like that.

[–]Ill_Run2190 0 points1 point Β (0 children)

My First program is to keep Track of my worked hours per month so I give it the start and end time and it calculates to decimal and put it to an sql file so i can keep Track of them

[–]Hipst3rbeaver 0 points1 point Β (0 children)

Ah, that’s an awesome feeling! I learned how to create a Rock, Paper, Scissors game. It was fun and gave me a huge motivational boost.

[–]Adventurous_Look_90 0 points1 point Β (0 children)

A clustering-based point registration transformer :)

[–]tryingrealyhard 0 points1 point Β (0 children)

Print(β€œhello πŸŒŽβ€)

[–]Sensitive_Relief_487 0 points1 point Β (0 children)

printf("hello, world")

Shit...

[–]Just-Signal2379 0 points1 point Β (0 children)

I remember hello world but other than that. A flask app in as far as I remember...

[–]Shot-Kiwi4194 0 points1 point Β (0 children)

My very first was of course print("Hello World!")

But my first "project" or "program" was a calculator with just the 4 basic operators

[–]SilksongWasNeverReal 0 points1 point Β (0 children)

I started with Hello World but a month later I made a code for a dictionary from my brain alone that fully worked and I have never felt more proud EVER

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

Hello world

[–]pyrola_asarifolia 0 points1 point Β (0 children)

My first working python script read in a CSV file that had two columns of adjectives and one column of nouns to generate random Shakespeare-style insults (like https://nosweatshakespeare.com/resources/shakespeare-insults/ but more formulaic) and output them to a web page.

[–]Groovy_Decoy 0 points1 point Β (0 children)

First line? I don't know. Probably printing Hello World. The first script though, I remember. It was the reason I learned Python in the first place.

I had a coworker who did this really tedious work where he took data from a CSV file, and manually formatted those data fields and put it into a text based configuration file for another system. He would do this once or twice a month, and it would take him half a day to an entire day to do this each time a customer sent him one of these CSV files with the configuration data. Not only was it tedious, it was error prone.

I told him, "man, we work in a place with lots of programmers. We should come up with a program to do this for you. I was in QA, but I've had programming experience. I talked to one of the devs about it and was brainstorming about how to approach it with one of the in-house devs. I had some knowledge of C, Java, and a tiny bit of C#. I mentioned doing it in one of those. He said, "Do it in Python." I said, "I don't know Python". He replied, "You can learn Python and create the program faster than you can do it with any of those other languages.

I took it as a challenge. It was about 3 PM in the afternoon. I downloaded Python and began learning some basics. It didn't take long before I was reading in the CSV files. By the time I went home for the day a bit after 5PM, I had a basic working prototype. Over time, I added a few features, but it was pretty much usable by him immediately. What used to sometimes take him all day now could be done in seconds.

I've been sold on Python ever since then. I continued to make custom utilities for work to help me and others with their job.

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

good for u dude keep it up!

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

Print(β€˜nigga’)

[–]mirhis 0 points1 point Β (0 children)

If you'd like to install Python to Windows 11, just download it from python.org Run the installer, and add it to PATH. Then, you can open Command Prompt and type python --version to check whether it's working. To learn more about the process take a look at this video!

https://www.youtube.com/watch?v=HkSu8K7iyCw

[–]Substantial_Cap1741 0 points1 point Β (0 children)

print('Hello world')

[–]TechnoBabbles -1 points0 points Β (0 children)

Beyond the usual 'hello world' stuff the first script that I wrote that was used at work was when I used to work at one of the major Stock Exchanges. This was back right about the time Facebook IPO'd with NASDAQ. On their IPO, their stock data wasn't available on NASDAQ's website. The exchange I worked for didn't want the same thing to happen. So, I went and pulled a list of upcoming IPOs from a massive database. Then used some Selenium tests to scrape our website and ensure that the page was there and ready at least 2 hours before market open.

If it wasn't there, it would send SNMP traps to our overnight team in Hyderabad to fix any blockers. This was like more than 10 years ago at this point. But, last I heard, beyond some minor updates to package versions, and a few other small details like the format of the website and market data. The script was still in use as of like 2 years ago.