Re: Newbie, homework help, please.

2012-04-23 Thread Jean-Michel Pichavant
someone wrote: I have a professor who should be [*snip*] the best person I've ever met I hope he's (not) reading this list :o) Non python advise : be very careful on the internet. JM -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie, homework help, please.

2012-04-22 Thread someone
On Saturday, April 21, 2012 5:48:29 PM UTC-5, BartC wrote: > "someone" wrote in message > news:9533449.630.1335042672358.JavaMail.geo-discussion-forums@ynmf4... > > On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: > > > Hi, Bart: Thank you, your post is working now, maybe, I did somethi

Re: Newbie, homework help, please.

2012-04-21 Thread Michael Torrie
On 04/21/2012 02:14 PM, someone wrote: > Thanks for your reply Mr. Roy Smith. Also, thanks for the tip. Maybe > I did not make myself as clear or maybe you did not understand my > post. It states homework help, and I am doing this post to get help > before I pay somebody to show me how to do it,

Re: Newbie, homework help, please.

2012-04-21 Thread duncan smith
On 21/04/12 23:48, BartC wrote: "someone" wrote in message news:9533449.630.1335042672358.JavaMail.geo-discussion-forums@ynmf4... On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: Hi, Bart: Thank you, your post is working now, maybe, I did something wrong, unfortunately, you are rig

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
"someone" wrote in message news:9533449.630.1335042672358.JavaMail.geo-discussion-forums@ynmf4... On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: Hi, Bart: Thank you, your post is working now, maybe, I did something wrong, unfortunately, you are right, my setup for getting the file

Re: Newbie, homework help, please.

2012-04-21 Thread Kiuhnm
On 4/21/2012 22:26, GrayShark wrote: --- #!/usr/bin/python xl = ["First Name and Last","ENGR 109-X","Fall 2999","Format Example"] xl_max = 0 for x in xl: xl_max = max ( len( x ), xl_max ) Or xl_max = max([len(x) for x in xl]) topBorder = '^'*( xl_max + 4 ) pr

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: > "someone" wrote in message > news:9071485.2215.1335040139144.JavaMail.geo-discussion-forums@yniw15... > > > Thanks Bart for trying, it helped me out a little more by showing me a > > little more than I knew, but I tried and I am not sur

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
"someone" wrote in message news:9071485.2215.1335040139144.JavaMail.geo-discussion-forums@yniw15... Thanks Bart for trying, it helped me out a little more by showing me a little more than I knew, but I tried and I am not sure if it does fit my example due to it was too many stars in between the

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
"someone" wrote in message news:4068590.2196.1335038608255.JavaMail.geo-discussion-forums@ynjn4... textTuple = border(SHI) for lines in textTuple: print (lines) Thanks your Bart for trying, I don't understand how it works or if you tried to place my script in python to see if it would wo

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: > Ok, this is my dillema, not only am I new to this programming buisness, > before the last few days, I did not even know what python was, and besides > opening up the internet or word documents, that is most of what I know. Yet, > I

Re: Newbie, homework help, please.

2012-04-21 Thread GrayShark
A lot of to do about this. --- #!/usr/bin/python xl = ["First Name and Last","ENGR 109-X","Fall 2999","Format Example"] xl_max = 0 for x in xl: xl_max = max ( len( x ), xl_max ) topBorder = '^'*( xl_max + 4 ) print topBorder for x in xl: print "* %s%s *

Re: Newbie, homework help, please.

2012-04-21 Thread Roy Smith
On 04/21/12 14:44, Roy Smith wrote: > print "* %-*s *" % (max_length, data) On Apr 21, 2012, at 4:12 PM, Tim Chase wrote: > Sounds like a lot more work and less flexible than using the (underemployed) > .ljust() or .center() methods of a string. :-) > > print "* %s *" % data.ljust(42) Six o

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: > Ok, this is my dillema, not only am I new to this programming buisness, > before the last few days, I did not even know what python was, and besides > opening up the internet or word documents, that is most of what I know. Yet, > I

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: > Ok, this is my dillema, not only am I new to this programming buisness, > before the last few days, I did not even know what python was, and besides > opening up the internet or word documents, that is most of what I know. Yet, > I

Re: Newbie, homework help, please.

2012-04-21 Thread Tim Chase
On 04/21/12 14:44, Roy Smith wrote: *** * * * First Name and Last * * ENGR 109-X * * Fall 2999 * * Format Example * * * *** You

Re: Newbie, homework help, please.

2012-04-21 Thread Roy Smith
In article <32945367.2045.1335029313436.JavaMail.geo-discussion-forums@ynjn4>, someone wrote: I'm not going to do your homework for you (nor do I expect anybody else will), but I'll give you a hint about one sticky part. > 6) Display the SHI data read from the file in the interpreter with a b

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
"someone" wrote in message news:32945367.2045.1335029313436.JavaMail.geo-discussion-forums@ynjn4... 6) Display the SHI data read from the file in the interpreter with a border around the SHI data (include a buffer of 1 line/space between the border and SHI data). An example might look like:

Re: Newbie, homework help, please.

2012-04-21 Thread MRAB
On 21/04/2012 18:28, someone wrote: Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I have a professor who should be o

Re: Newbie, homework help, please.

2012-04-21 Thread Jon Clements
On Saturday, 21 April 2012 18:35:26 UTC+1, someone wrote: > On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: > > Ok, this is my dillema, not only am I new to this programming buisness, > > before the last few days, I did not even know what python was, and besides > > opening up the

Re: Newbie, homework help, please.

2012-04-21 Thread Ian Kelly
On Sat, Apr 21, 2012 at 11:28 AM, someone wrote: > for item in userinput: >    openfile=open(textfile,'w');openfile.writelines("%s\n" % item for item in > userinput);openfile.close() The for loop here means that the file will be written and rewritten four times. The end result is the same, but

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: > Ok, this is my dillema, not only am I new to this programming buisness, > before the last few days, I did not even know what python was, and besides > opening up the internet or word documents, that is most of what I know. Yet, > I

Newbie, homework help, please.

2012-04-21 Thread someone
Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I have a professor who should be on Psych medication for giving us 3 pro