I meant to make this thread earlier but completely forgot until i read Tangent Orchard's post.
We will be hosting a LOTM installment on the Programming Language Python on Thurs. April 23rd in EB 1024 at 11am.
The presenter is Micheal Parish (sorry if i spelled your name wrong).
If you have any questions or comments you can post them here.
Travis
For any of you willing to venture into python yourself, it's really quite an easy language. This tutorial (http://docs.python.org/tutorial/index.html) from python.org (http://python.org) is fantastic. You can be up and running with some pretty complex solutions to problems in 24 hours with some of the nuances of the language coming to you later.
The time on this presentation is being changed due to a conflict with our Springfest booth :hammer2:
It will be moved to later in the day.
I will post the new time when i get it.
Travis
Quote from: Travis W on 2009-04-13T19:41:25-05:00 (Monday)
The time on this presentation is being changed due to a conflict with our Springfest booth :hammer2:
It will be moved to later in the day.
I will post the new time when i get it.
Travis
Awesome, I might be able to come now. :D I've always wanted to see what Python's like. (Apparently I'm too lazy to research it myself or something.) (Busy with homework! There we go.)
Just got the word.
The new time is 3:30 in room EB0012 still on Thursday April 23rd :yes:
Travis
Quote from: Travis W on 2009-04-15T23:00:14-05:00 (Wednesday)
Just got the word.
The new time is 3:30 in room EB0012 still on Thursday April 23rd :yes:
Travis
Cool. (You'll also want to update the header on the Forum Index. ^_^)
Nice...I don't even have to get up from my seat after Databases. The LotM will come to me.
It has just been decided at today's meeting that we will be providing pizza and soda at the presentation. :wavetowel:
Travis
How long is the presentation??
I have to work at the bowling alley until four.
Would I be rude walking in late?
No, you would not be rude walking in late -- people have to leave for class all the time. Although you'll probably miss the pizza and a good portion of the presentation. I'm guessing it'll last close to an hour, but I'm judging from past presentations.
I know most of the people that attended the presentation were Juniors and Seniors...but if there's anyone out there that wants to take a look at Python from an introductory programmers perspective, there's a course entitled A Gentle Introduction to Programming Using Python (http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-189January--IAP--2008/CourseHome/index.htm) on MIT's open courseware website. At first glance it looks like its roughly on par with the CS 140 course offered at SIUE.
Did you guys record video? I'd say just throw it up on youtube.
Quote from: William Grim on 2009-04-23T21:08:12-05:00 (Thursday)
Did you guys record video? I'd say just throw it up on youtube.
YouTube only lets you upload 10 minutes of video. It's uploading to vimeo as we speak. I'll post the link soon.
Here you go guys: http://bit.ly/g8mud
Sorry for the poor audio and lack of editing at the end (mostly directed towards Mark). Were still trying to figure out the best way to record these and edit them together as fast as possible while maintaining quality. The slides should be posted up soon.
Site update: The site's "done" as it can be, just needs to be pushed. So I'll see about the switch this week.. hint: if you're curious its in "beta".. ;)
Well done, Michael. =) I forgot to ask during the presentation, but you mentioned you normally write Python code in a normal text editor like Notepad or something. How do you take it from there to an executable?
Quote from: Tangent Orchard on 2009-04-24T21:26:15-05:00 (Friday)
Well done, Michael. =) I forgot to ask during the presentation, but you mentioned you normally write Python code in a normal text editor like Notepad or something. How do you take it from there to an executable?
Usually python programs are distributed as just .py or .pyc files, but there are bundling tools out there that create an executable. This is good if you want to be able to distribute your programs without having to worry about if the user has Python installed or not.
To create a .pyc file just:
import py_compile
py_compile.compile("mymodule.py")
And that should generate the bytecode.
You can use http://www.py2exe.org/ for windows or http://undefined.org/python/ (py2app) for mac to make an .exe or .app file.
Quote from: Tangent Orchard on 2009-04-24T21:26:15-05:00 (Friday)
Well done, Michael. =) I forgot to ask during the presentation, but you mentioned you normally write Python code in a normal text editor like Notepad or something. How do you take it from there to an executable?
or if you're on a *nix box and you just want to run a simple script, from command line: python filename.py
another way on a unix system is to specify the directory where the python binary is located at the top of your file..
Example: #!/usr/bin/python
then on the command line type sudo chmod +x "python-file.py", and then you have an executable python script.
The recommended magic file type is actually
#!/usr/bin/env python
This is so your PATH gets checked.
I just chmod 755 the file :)
There's not nearly enough ways to run a .py file it seems.
I found this in another forum.
python -c 'print "\n".join([" ".join(["*"*n for n in t]).center(9) for
t in [(3, 3), (9,)] + map(lambda n: (n,), range(9, 0, -2))])'
*** ***
*********
*********
*******
*****
***
*
Scott's 500th post was a heart, via a python script. win.