Home | Community | Message Board

Cannabis Seeds Zamnesia
This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Myyco.com Shop: Golden Teacher Liquid Culture For Sale

Jump to first unread post Pages: 1
Learning the Ancient Ways Part I: Getting Started w/ Python * 5
    #29697751 -


Teach Me, Senpai!
Or: How I Learned to Stop Worrying and Love Python
Part I: Hunting and Escaping What is This Snake Doing Here?


Table of Contents:
THIS INFORMATION NOT AVAILABLE AT YOUR CURRENT CLEARANCE LEVEL

So!  Some people said they were interested in learning to do the code.  Sweet!  I'll help facilitate that.  Why?  Because I feel like it.  And maybe it'll make people like me or something.  Either way, I'm going to be starting out with everyone's favourite beginner-friendly language: Python.

"But, what are your qualifications?" I hear you ask.

AnnoyingExcellent question!  I'm a software engineer by education and trade with a Bachelors in Computer Science from [REDACTED].  I've been writing software in some way, shape, or form for over 25 years and am fluent in multiple languages and technologies.  I've worked personally, professionally, semi-professionally, and ecumenically with all aspects of the software development lifecycle.

In short: this is one of the very, very limited areas in which I can render an opinion as an actual professional.

"But, what about ChatGepetto or what-the-fuck-ever?"

What about it?  We will not be needing it.  I will show you that fucking anyone can learn to do this shit.  Do you have a first language?  Can you read?  Can you do elementary school level math and think with a modicum of basic, fundamental logic?  Then, you can write code.  Yes, this shit really is that straightforward.

With that--

"I have more ques--!"

No, you don't.  Question time over.  Learn time now.


Actually Downloading Python

This is the easiest part of the whole assignment.  If you can't manage this, then you should probably be asking for your pacifier, because what is an infant doing on the internet?  Much less on a forum dedicated to mind-altering substances.

Go to python.org/downloads.  It should look something like this:



Scroll down 'til you find this:



"What version do I get?  This is too hard!"

...It really isn't.  Just pick the latest one.  So long as its name starts with "Python 3," you'll be fine.  The language doesn't really change much, if at all, between individual releases.  Just don't get Python 2.  Python 2 is old, unsupported, and bad.  Get Python 3.

Got it downloaded?  Did you download it from python.org?  Make fuckin' sure, because I don't wanna have you coming to me, bitching because you decided to become the main character in Chuck Tingle's latest novella: Russian Ransomware Butt Invasion.  All good?  Bitchin'.  Install it.

Once that's done, you'll have access to a couple new things, the one we care about is a program called IDLE.  What is it?  It's a basic-as-you-can-possibly-get development environment for Python.

"The fuck's that mean?"

It lets you write code and run it.  That's all you'll need.  Again, it doesn't get much simpler.  Anyway, run that bad boy.  You'll be greeted with this:



I'm gonna be using Python 3.9.9 for this, but what I'll be teachin' ya should work for any version after that, too.

But, that new window?  That's the interactive Python shell.  In a lame man's terms: it lets you type code, hit enter, and make it go.

"I AM THE MASTER OF THE UNIVERSE NOW!"

Calm down there, Sparky.  And maybe come down off the 9-hour cocaine binge.  For this, we're gonna do a few extremely simple things: create a variable, assign shit to it, and print it out.  A variable's just somethin' you store a value in.  Bam, see?  S I M P L E.

Put the following in the shell:

Code:

msg = 'Kiss my shiny, metal ass!'



And hit enter.  "It didn't do anything!  It just gave me a new >>> thingie!"  That's fine.  That means it worked.

Ya see, you now have a variable called "msg," which is almost always shorthand for "message."  The single quotes contain what's called a string, basically a series of characters (letters, numbers, and other shit) that represent text.  You can use double quotes in Python, as well, like...

Code:

msg = "Kiss my shiny, metal ass!"



That will work just as well and do the exact same thing.  There's a very minor difference on what a string enclosed in single vs. double quotes can do, but that's a topic for later.

So!  Now, you have a pretty, new variable.  So, put that motherfucker to use!  Type this into the shell:

Code:

print( msg )



And hit enter.

<WRITER'S NOTE: My code-writing syle's a little different from some folks.  But, hopefully, it should be easier to read.>

You should see:



And, there ya have it.  You have officially written code without a single lick o' genAI.  See how easy that was?  It's even quoting Bender Bending Rodriguez at ya!  What more could ya want, at this stage?

Well, hopefully, you see how straightforward this shit really is.  Python makes things real, real simple.  There's a few little bugbears to contend with regarding the specifics of the language, but you really don't get much easier.

NEXT TIME, ON DRAGON BALL Z!

"What the fuck do you mean by 'if statement?!'"

<THIS SPACE RESERVED FOR LINK TO PART II>

Edited by DorkWithTheHair (10/14/26 03:30 PM)

Extras: Filter Print Post Top
Re: Learning the Ancient Ways Part I: Getting Started w/ Python [Re: DorkWithTheHair]
    #29697981 -

Thank you for your wisdom sensei



--------------------
"Why try for high fives,
When my pies have nine lives?"
DUBJUG : H.D. : PLASTIC-MYC : TGE : JOIN CAKE WARS : MODERN FRUITING : MCWA : QDMT : MY FAV TEKS 📖

Extras: Filter Print Post Top
Re: Learning the Ancient Ways Part I: Getting Started w/ Python [Re: langten69]
    #29698063 -

Cheah, any time.  Dunno if I'll do this daily or weekly or whatever.  The early parts will prolly be closer together since they'll be simpler.  Once we start gettin' into the REAL black magic fun shit, it'll prolly start gettin' spaced out more w/r/t release date.

But, yes!  I had fun writing this, so I see no reason to stop.  Nice to use my own voice to write instead of one of my characters, lol.

Extras: Filter Print Post Top
Re: Learning the Ancient Ways Part I: Getting Started w/ Python [Re: DorkWithTheHair]
    #29698104 -

Teach how to use venv and what it's capable of for automations :popcorn:


--------------------





An enigma some caerulescens n a mono 😎

Extras: Filter Print Post Top
Re: Learning the Ancient Ways Part I: Getting Started w/ Python [Re: DorkWithTheHair]
    #29698209 -

That signature:batlol:

That was a fun write-up!


--------------------
Some say we'll see Armageddon soon
I certainly hope we will
:madpirate:

Extras: Filter Print Post Top
Re: Learning the Ancient Ways Part I: Getting Started w/ Python [Re: Reishi Uchiha] * 1
    #29698223 -

Google notebooks website also allows you to run python script in a controlled environment without access to local files n is a great tool to test stuff sometimes 😁 + it has free ram u can use in that vertical environment it creates so u can test some heavyer stuff evin if u ain't got a gpu 😅


--------------------





An enigma some caerulescens n a mono 😎

Extras: Filter Print Post Top
Re: Learning the Ancient Ways Part I: Getting Started w/ Python [Re: bloodssonnew]
    #29700332 -

Yeah, that's true.  I just always had a preference for havin' shit stored and running locally.  I got no say in what Google does w/ the shit on their servers, and I don't trust Google any more'n I trust any comically evil megacorp that could buy its way out of literal genocide.

Extras: Filter Print Post Top
Re: Learning the Ancient Ways Part I: Getting Started w/ Python [Re: DorkWithTheHair]
    #29705472 -

Okay, I'm trying to fucking edit the OP, but the board thinks I'm trying to hack it.  It's fucking high school all over again...

Anywho, here's Part II!

Extras: Filter Print Post Top
Jump to top Pages: 1

Myyco.com Shop: Golden Teacher Liquid Culture For Sale


Similar ThreadsPosterViewsRepliesLast post
* Scripting Languages: Ruby vs. Python Evolving 1,223 8 02/14/04 10:57 PM
by djfrog
* Learning about the brain moosehead 2,348 4 09/30/03 04:33 PM
by Seuss
* Problem - Starting Up. abhi 781 3 06/20/04 02:46 PM
by abhi
* Learning to create a webpage? Tao 931 10 05/24/04 05:39 AM
by T0aD
* Changing Start Menu Short-Cuts in XP Jackal 743 4 04/20/04 02:57 PM
by Xochitl
* start up screen ChromeCrow 996 7 01/29/04 09:45 PM
by GreyStreet
* Willing to do asp programming, and get paid when cash starts Fliquid 997 3 11/12/03 05:03 AM
by Fliquid
* php easter egg Mycomancer 5,319 7 05/02/06 05:15 AM
by Le_Canard

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: trendal, automan, Northerner
84 topic views. 0 members, 1 guests and 1 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2026 Mind Media. Some rights reserved.

Generated in 0.029 seconds spending 0.005 seconds on 14 queries.