Archive for the ‘terminal’ Tag

“Hello Butt” in Python   Leave a comment

My wife is not a programmer. She is also not a techie, nor is she at all interested in such things. She likes her computer to let her surf facebook, play Bejeweled and make pretty pictures in PhotoShop, but that’s about it.

And of course, thanks to her disinterest, I have a strong fascination with tricking her into doing technical stuff. Like tonight when, in a sleep haze, I told her I had something I needed her to help me with.

Her: “What do you need me to do?”

Me: “Open up terminal.”

Her: “What’s a terminal?”

Me: “It’s an application in your Utilities folder… ya the black one.”

Her: “Now what?”

Me: “Do you have a folder you just throw lots of junk files in?”

Her: “You mean like my temp folder?”

Me: *grinning with pride*
Me: “Yes, exactly. Change your directory to it.”

Her: “Wha… how… how do I do that?”

“Me: Type cd and the directory… wait cd **space** and the director… wait no it’s case-sensitive… ok good.”

Her: “Now what?”

“Me: Type vi space susan.py.”

Her: “What the fuck is this thing?”

Me: “A text editor. Hit i. Ok now you can type… no not yet. Type what I tell you.”

Her: “Ok, what do I type?”

Me: “Type myvar.. all one word… space equals sign space… and then ummm..”

Her: “What else do I type?”

Me: “I don’t know, whatever you want, but put quote marks around it.”

Her: *click click click click*

Me: “I guess that works…”

Me: “Okay, now hit enter and type while parenthesis uppercase-T, then the rest in lower case, true, then end paren and a colon…. Nice!”

Me: “Now enter, hit space 4 times… now type print parenthesis myvar close paren enter”

Her: “Now what?”

Me: “Hit escape, and type upper-case ZZ… no, both z’s are upper-case”.

Me: “Alright, now type python space sus… you can hit tab to complete the word. nice. ok now hit enter”

butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
butt
^C

The end.

Posted December 24, 2010 by Rob Ciaccio in Python

Tagged with , , ,