<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Shawn posted a few really good links in regards to Python for
students...<br>
unfortunately I've moved computers and all my old saved mails didn't
come with me ...<br>
<br>
I get my python from <a class="moz-txt-link-freetext" href="http://www.activestate.com...they">http://www.activestate.com...they</a> have it
available for many platforms...<br>
<br>
Python is easy enough to learn and works on multiple platforms...has
wxPython which lets you make "windows" programs...<br>
here's a little commandline script I've developed to make usernames for
me =) <br>
Those of you who are programmers thank you for disregarding the lack of
optimization and succinct commenting =)<br>
<br>
Input is a textfile with <firstname> <lastname> of user
each entity on seperate lines<br>
<br>
Example follows:<br>
<br>
<font color="#006600">#Funkified by Huck on 20/06/04 dd/mm/yy</font><br>
<font color="#ff6600"><font color="#006600">#string required for the
manipulation of strings</font><br>
import string<br>
<font color="#006600">#making a nifty menu system below</font><br>
def print_menu():<br>
   print '1. Press 1 to (i)mport the namelist.txt file'<br>
   print '2. Press 2 to (g)enerate usernames'<br>
   print '3. Press 3 to (p)rint new usernames.txt file'<br>
   print '4. Press 4 to E(x)it the Program'<br>
numbers = {}<br>
menu_choice = 0<br>
print_menu()<br>
while menu_choice != 4:<br>
   menu_choice = input("Type in a number (1-4):")<br>
   if menu_choice == 1:<br>
<font color="#006600">      #Open the file "namelist.txt"</font><br>
      in_file = open("c:\\namelist.txt","r")<br>
<font color="#006600">      #variable "textfile" gets filled with info
from namelist.txt</font><br>
      textfile = in_file.readlines()<br>
<font color="#006600">      #Close the file "namelist.txt"</font><br>
      in_file.close()<br>
      <br>
   elif menu_choice == 2:     <br>
<font color="#006600">      #The Loopy Loopy</font><br>
      namenum = 0<br>
      out_file = open("c:\\my
documents\pythonscripts\usernames.txt","w")<br>
      print namenum<br>
      while namenum < len(textfile):<br>
<font color="#006600">         #Manipulate the namelist into pieces we
can handle</font><br>
         mystring = textfile[namenum]<br>
         newlist = mystring.split()<br>
         fname = newlist[0]<br>
         lname = newlist[1]<br>
         fname = fname[:2]<br>
         lname = lname[:4]<br>
<font color="#006600">         #Concatenate and Write to File</font><br>
         out_file.write(lname+fname+"\n")<br>
         print lname+fname+" has been written to file." <br>
         namenum = namenum+1<br>
         print namenum<br>
      out_file.close()<br>
      namenum = 0<br>
   elif menu_choice == 3:<br>
<font color="#006600">      #Gimme some output baby!</font><br>
      in_file = open("c:\\my documents\pythonscripts\usernames.txt","r")<br>
      funkytext = in_file.readlines()<br>
      in_file.close()<br>
      print funkytext<br>
   elif menu_choice == 4:<br>
      pass<br>
   else:<br>
      print_menu()<br>
print "Goodbye!"</font><br>
<br>
<font color="#006600">#That's All Folks!<br>
<br>
<font color="#000000">enjoy!<br>
--Huck<br>
<br>
<br>
</font></font>Liam Marshall wrote:<br>
<blockquote cite="mid1090509933.8020.14.camel@server.ltsp" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="GENERATOR" content="GtkHTML/3.0.9">
In the past years, while working with the evil empire of Microsoft, I
was teaching among other things, two programming classes.  One Grade 11
class using the medium of Visual Basic, and one grade 12 class using
the medium of Java.<br>
  <br>
I have managed to convince the school to let me break away from the
evil empire and go to linux in the lab completely.  Specifically, I am
using K12LTSP with thin clients.  I have 32 workstations all connecting
to my server now,( a bit of work but worth it compared to the wiping
out of workstation hard drives and reloading from scratch that I do
every year during the summer)<br>
  <br>
I have Java workable on the workstations and am using an IDE from SUN
(NetBeans IDE 3.6)  it works great!<br>
  <br>
Now I am looking for a replacement for Visual Basic, which will never
work under Linux.  It doesn't have to be Visual Basic, I was just using
it before because frankly, it was an easy to learn language with alot
of mouse work.  The operative word is EASY.  That way I could focus on
the concepts of programming without having to focus on learning the
mechanics of the programming language.  With Visual Basic the mechanics
comes more or less naturally.<br>
  <br>
What I would like is some language usable with linux that is of a
similar nature.  I would prefer a language that has a nice visual
component (IDE, read EASY) so that the students introduction to
programming is not like throwing them into the deep end of the pool of
programming.<br>
  <br>
Does such an animal exist?  And did I mention that it should be free,
at least for schools?  I convinced them to let me go to Linux at least
partially with the argument that cost was minimal, if anything.<br>
  <br>
Please advice.  I appreciate all your help, in advance
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
K12OSN mailing list
<a class="moz-txt-link-abbreviated" href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a>
For more info see <a class="moz-txt-link-rfc2396E" href="http://www.k12os.org"><http://www.k12os.org></a>
  </pre>
</blockquote>
</body>
</html>