[PyAR2] C++ vs. Python as teaching tool

W W srilyk at gmail.com
Tue Jan 15 20:50:20 CET 2008


Okay so I'm not sure why it sent way before I was ready... I guess gmail
thought it was funny or something.

Anyhow, we didn't get to any programming, just flow-chart. The lab (2 hours)
will be spent writing a program that took me about 5 minutes in python.

      1 name = raw_input('Enter Employee Name:')
      2 hours = int(raw_input('Enter Employee Hours Worked:'))
      3 wage = float(raw_input('Enter Employee Wages:'))
      4 print name, 'earned $' + str(wage*hours)

Four lines. I don't even think I'll be able to write a program that does
/nothing/ in c++ with four lines.

MMmmm, python!

On Jan 15, 2008 1:40 PM, W W <srilyk at gmail.com> wrote:

> So...
> I'm a student at UCA, taking my "Computer Science I" (read: coast class
> for anyone who's written a program).
>
> They use C++ as the CSCI I and II language. I've become an avid... oh I
> don't know what you call us python fans, but I've been one for quite a while
> now. But this just took the lesson home even further.
>
> Today for the in-class lesson
>
> --
> To be considered stupid and to be told so is more painful than being
> called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every
> weakness, every vice, has found its defenders, its rhetoric, its ennoblement
> and exaltation, but stupidity hasn't. - Primo Levi




-- 
To be considered stupid and to be told so is more painful than being called
gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness,
every vice, has found its defenders, its rhetoric, its ennoblement and
exaltation, but stupidity hasn't. - Primo Levi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/mailman/private/pyar2/attachments/20080115/bc5a4ef9/attachment.htm 


More information about the PyAR2 mailing list