Engineer & Entertain

Ideas I grapple with

Python Now, Asp Kicking Later

I have two goals in life:

  1. Be better than sliced bread
  2. Know everything

I am not sure how to do the former and I am woefully behind on the latter.  To combat my lack of knowledge I have been picking an area of knowledge I am deficient in and I learn as much as I can about it.  Areas in which I have notable aptitude include obscure trivia from the space race and performing cheap tricks better than David Blaine.  My next foray is learning computer programming.  MIT’s Open Course Ware is allowing me to take 6.00 Introduction to Computer Science and Programming to satiate my thirst for operants and operands.

Lecture 1 focused on the syllabus, course mechanics, and introduced students to terms and concepts which will be used through out the course.  Points of interest include:

  • Memorization: The professor stated the ability to memorize was not nearly as helpful as the ability to think.  This is a point I believe all educators should try and get across.  It does not matter if you memorize “The Raven” or know all the knowable Mersenne primes if you cannot consider the impact of what it means.
  • Plagiarism: Plagiarism is relatively tolerated in programming.  The instructor encouraged us to look at other codes to see how they solved similar problems.  He did suggest we try working on the code rather than search for it, copy, and paste and call it our own.
  • Work: The instructor also commented that students do well if they attend class twice weekly, attend recitation (which is sadly not broadcast), and perform homework.  While this is an obvious statement for those who excelled in college, all too often I observe students who do not see the correlation between practicing what you learned in class.

Problem Set 0: Write a program that does the following in order: 1.  Asks the user to enter his last name.  2.  Asks the user to enter his first name.  3.  Prints out the user’s first and last names in that order.

Consideration: I encountered a road block immediately as I did not know how to query for input.  After discussing it with Corrie, who is also taking this course, I learned about raw_input.  I also learned there is a Wiki* workbook for Python to which MIT specifically refers.

Solution: The solution is remarkably simple and many with any form of coding experience will scoff it took me more than two minutes to do this.  When coders decide to learn first aid, I will scoff at them for taking a pulse with their thumbs**.

>>>lastname=raw_input(‘Enter last name’); firstname=raw_input(‘Enter first name’); print firstname, lastname

*There are many wikis for python, but the specific one listed by MIT provides decent examples.
**There is a palpable pulse in your thumb.  You may feel your pulse in place of the pulse of the victim.


Single Post Navigation

5 thoughts on “Python Now, Asp Kicking Later

  1. Corrie on said:

    If anyone makes fun of you for how long it took you I will scream. It took me darn near 3 hours to do that, and I was damn proud I did it all on my own.

  2. So how long until you get into elseiffor?

  3. sleuthmilanowski on said:

    From my experience, elseiffor seems like an advanced topic. I hope we don’t encounter it until a few lectures later.

  4. elseiffor!

    I had practically zero knowledge of programming until freshman engineering. It was very difficult for me, and I only took CS152.

  5. Pingback: Speaking your language « Engineer & Entertain

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: