Hi, All:
I have a question about manipulating images.
If I have a image, is there a kind of algorithm to convert it
into kind of Iphone icon style? part transparent, gradient
Thanks!
___
Tutor maillist - Tutor@python.org
To unsubscrib
Alan, the last two paragraphs you wrote is classic. Very, very true. LOL.
Ken
On 01/16/2011 07:32 PM, Alan Gauld wrote:
Python is so tempormential what is wrong with my code?
Python is not temperamental, it is just doing exactly what you ask it
to do.
It makes no judgement about whether
> minus_weekends=hourly_income*64
> total_income=int(minus_weekends-sum_of_monthly)
Here's problem number 1 - you're taking the values the wrong way around :)
It should be total_income=int(sum_of_monthly-minus_weekends)
> sum_of_monthly=int(yearly_income/12)
Here's the second problem
"walter weston" wrote
def income_report(yearly_income,hourly_income):
sum_of_monthly=int(yearly_income/12)# his yearly income dividing
by 12.
minus_weekends=hourly_income*64
total_income=int(minus_weekends-sum_of_monthly)
return sum_of_monthly,total_income
When you divide you
Heres my code:
def income_report(yearly_income,hourly_income):
""" this will count the average of your total monthly income"""
sum_of_monthly=int(yearly_income/12)# his yearly income dividing by 12.
minus_weekends=hourly_income*64 #the 64 is the two days off for the
weekend(assuming
Thank you David!
I've incorporated your parts into my code, and after some fiddling it
worked!
I've kept the glob.glob though because having to type all filenames (as in
your code) would take me too long.
Solved problem:
Add a casenumber to every line in a directory filled with .arff files, write
wrote
successfully installed python 3.1.3 for Mac on my iMac computer. I
have
read the readme files that come with the download. I think that
Idle is
the initial text editor. I know how to use the terminal. I cannot
find
a written procedure that gets me to the point that I can find a way
Hi all,
I am trying to use pySerial to connect to a USB over Serial device. Using,
USB
monitoring tool, I see that I am able to connect to the port. I could also
read
data relayed by the device. However, any write on the com port handle is
throwing
Windows Error 2, The system cannot find the file
I'm having a lot of trouble getting started. I believe that I have
successfully installed python 3.1.3 for Mac on my iMac computer. I have
read the readme files that come with the download. I think that Idle is
the initial text editor. I know how to use the terminal. I cannot find
a written pr