Hi All
I was able to exit the while loop , using sys
module
also I was able to find the maximum no of marks
entered , I am adding my code , for comments and
suggestions
Thanks for the support
Joseph John
*
Several months ago I saw an item on the O'Reilly site to the effect that
the 3rd. ed. of Programming Python was in the works. I made a note to
myself to check back in January. I just did, but could find nothing at
all about a 3rd. edition. Anyone know?
Thanks,
Dick Moores
___
On Wed, 4 Jan 2006, John Fouhy wrote:
> On 04/01/06, Terry Carroll <[EMAIL PROTECTED]> wrote:
> > I hope someone more artful than I can show a quick and easy way to convert
> > either '758C87F3' or -1972144115 to the '8A73780D' that is your goal.
>
> Hmm, well,
>
> >>> i = -1972144115
> >>> '%X
On 04/01/06, Terry Carroll <[EMAIL PROTECTED]> wrote:
> I hope someone more artful than I can show a quick and easy way to convert
> either '758C87F3' or -1972144115 to the '8A73780D' that is your goal.
Hmm, well,
>>> i = -1972144115
>>> '%X' % (pow(2, 32)-(~i+1))
'8A73780D'
Although my bitwise
On Tue, 3 Jan 2006, Ron Speerstra wrote:
> my question: howtoo read the HD/CD/DVD serial-numbers with Python.
I can take you part-way there, at least under Windows. Hopefully
someone can finish the job.
I'm assuming you want the same serial # that shows up when you do a
DIR on the CD, e.g.:
>> im looking for very simple DES and RSA algorithms writen in python (or
>> C), can anyone know where i can find them
>
> I'll be slightly surprised if you find Python versions(but not amazed! :-)
> since performance is usually of high priority for cryptography.
Ok, I'm duly surprised but not am
> im looking for very simple DES and RSA algorithms writen in python (or
> C), can anyone know where i can find them
I'll be slightly surprised if you find Python versions(but not amazed! :-)
since performance is usually of high priority for cryptography.
But the RSA site should have C libraries
Try getting gvim for MacOS
vim includes a Python mode with syntax colouring and you can get it to print
it out using an HTML representation.
It works well IMHO (on any platform including MacOS).
http://www.vim.org/download.php
and MacOS specific versions :
http://macvim.org/
Scite does the sam
Danny!
Thanks! It's the tab vs spaces, alright.
I use tabs for my spacing and I was touching a part of the code that a co-worker wrote. Guess what he uses? Spaces.
Thanks for that insight and I'll be sure to read up on the command line options.
On 1/3/06, Danny Yoo <[EMAIL PROTECTED]> wrote:
On 04/01/06, Ron Speerstra <[EMAIL PROTECTED]> wrote:
> my question: howtoo read the HD/CD/DVD serial-numbers with Python.
> Volume-name, dir name, file name. no problem etc
Are you running Microsoft Windows? If so, are any of the scripts at
http://www.microsoft.com/technet/scriptcenter/scripts/p
On Tue, 3 Jan 2006, Jason Massey wrote:
> I've just finished ripping out a bunch of lines in one of my wxPython
> programs. Testing it out I get:
>
> C:\Python24>tla2.py
> File "C:\Python24\tla2.py", line 412
> self.grid.SetCellValue(0,0,"Site")
> ^
> SyntaxError: invalid syntax
>
> T
Hi,
What background do you come from?
Can you already program in another language?
> Hi! I got Foundations of Python Network Programming
> I really want to tackle my Foundations book and I want
> to get up to speed as quickly as I can. Thanks!
If you already program then just work through t
> entries for the list , But if I press Enter it should
> exit the while loop without giving errors ,I have
> problem in making it work , right now if I press enter
> to exit , the program terminates showing error
Thats because you can't convert an empty string to an int.
If you defer the conv
Hi, M-list, my name Ron Speerstra(the Netherlands)
my question: howtoo read the HD/CD/DVD serial-numbers with Python.
Volume-name, dir name, file name. no problem etc.
Gr Ron$
_
Vind alles terug op je PC: MSN Search Toolbar http:/
I've just finished ripping out a bunch of lines in one of my wxPython programs. Testing it out I get:
C:\Python24>tla2.py
File "C:\Python24\tla2.py", line 412
self.grid.SetCellValue(0,0,"Site")
^
SyntaxError: invalid syntax
There's nothing wrong with that line. I didn't even touch it
On Tue, 3 Jan 2006, lfiedor wrote:
> im looking for very simple DES and RSA algorithms writen in python (or
> C), can anyone know where i can find them
I'm changing subject lines. Please try to make your message Subject lines
descriptive enough to make it easier to find later.
Also, next time
googled for rsa & python:
http://www.python.org/workshops/1995-05/pct.html
On 1/3/06, lfiedor <[EMAIL PROTECTED]> wrote:
Hiim looking for very simple DES and RSA algorithms writen in python (orC), can anyone know where i can find them___Tutor maillist
On Tue, 3 Jan 2006, Lance E Sloan wrote:
> A colleague of mine often develops Python code under Mac OS X. He would
> like to be able to print the code in an easily readable format. He's
> found that kwrite on Linux does a very nice job, but it's inconvenient
> to copy his code to a Linux box j
Hi
im looking for very simple DES and RSA algorithms writen in python (or
C), can anyone know where i can find them
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
A colleague of mine often develops Python code under Mac OS X. He would
like to be able to print the code in an easily readable format. He's found
that kwrite on Linux does a very nice job, but it's inconvenient to copy
his code to a Linux box just to print it out.
We've found mention (mostly
Woops, forgot to reply-all.-- Forwarded message --From: Adam <[EMAIL PROTECTED]>Date: 03-Jan-2006 15:48
Subject: Re: [Tutor] How to make to exit the loop, while typing EnterTo: John Joseph <[EMAIL PROTECTED]>
array = []m = 0print "Enter to exit"m = int(raw_input("Enter the Values
> I am trying to write a program in which it ask for entries for the list
> , But if I press Enter it should exit the while loop without giving
> errors
Hi John,
Do you have ideas why it's getting an error? Can you point at the part of
the program that's receiving the "Enter"?
As a related qu
Hi,
I guess this has been discussed in detail in December
2005 (last month).
you might want to check this thread and the replies in
deteails.
http://mail.python.org/pipermail/tutor/2005-December/044028.html
This might help.
--- wood yee <[EMAIL PROTECTED]> wrote:
Hi! I got Foundations of Python Network Programming as a gift but I don't know Python. My library has several books called Beginning Python. One's by Wrox and the other is by the author of the hacking python tutorial. My question is how can I achieve my goal of becoming ready for Foundations of Py
On 1/2/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Bernard Lebel wrote:
> > I'm checking out the logging module atm. I'm trying the second example
> > in "Basic example":
> >
> > import logging
> >
> > logging.basicConfig(level=logging.DEBUG,
> > format='%(asctime)s %(levelnam
Hi
I am trying to write a program in which it ask for
entries for the list , But if I press Enter it should
exit the while loop without giving errors ,I have
problem in making it work , right now if I press enter
to exit , the program terminates showing error
I am added my script wh
Glad you got it working, now here are some picky comments
about style:
> # This program is to see how can we see how many
> students got particular mark
> # And how u print it
An introductory comment is good but in Python a common
way to do that is to use documentation strings, typically
usi
John Joseph said unto the world upon 03/01/06 02:02 AM:
> Hi All
> Thanks to Shantanoo,Brian,Alan,Owen
> Now I am able to enter the marks for each
> students , and display the results the frequency of
> marks in histogram
> Even though I am able to display the
> histogram of the
Hi All
Thanks to Shantanoo,Brian,Alan,Owen
Now I am able to enter the marks for each
students , and display the results the frequency of
marks in histogram
Even though I am able to display the
histogram of the marks with students , I would like
to modify it further as I learn m
29 matches
Mail list logo