dlwdan...@uct.ac.za wrote:
Hi there
I am a student and is new to python. I would like to know how to exact a value
from a list that has been opened from a text file in python.
Exactly the same way that you would get a value from any other list.
>>> my_list = [10, 20, 30, 40, 50]
>>> print my
On 5/7/2011 8:01 AM, dlwdan...@uct.ac.za wrote:
Hi there
Hi
I am a student and is new to python.
Welcome
I would like to know how to exact a value from a list that has been opened from
a text file in python.
Your question is much too vague to give any meaningful answer.
Exactly what d
On Wed, May 4, 2011 at 3:13 PM, Peter Otten <__pete...@web.de> wrote:
> Kushal Kumaran wrote:
>
>> On Tue, May 3, 2011 at 5:31 PM, Peter Otten <__pete...@web.de> wrote:
>>>
>>>
>>> Also you should make the try...except as narrow as possible
>>>
>>> try:
>>> centimeters = float(centimeters)
>>> exc
Thanks so much for your detailful information.
I spent sometime in learning before.
On Sat, May 7, 2011 at 8:17 PM, Wayne Werner wrote:
> 2011/5/7 lina
>>
>> Hi,
>>
>> As you will see I am a new beginner of learning python,
>>
>> I met a problem, hope someone can guide me one or two and help me
2011/5/7 lina
> Hi,
>
> As you will see I am a new beginner of learning python,
>
> I met a problem, hope someone can guide me one or two and help me learn.
>
Have you tried anything yet? Do you know how to read in from a file? Can you
go over it line by line? There are several tutorials avail
"Aaron Brown" wrote
Here is the code I have, and the error.
Actually you have a lot of errors!
I don't understand the TUPLE problem.
As Steven pointed out you cannot assign to a
tuple once it has vbeen created. You can only
create a new tuple. If you want to change the
collection use a l
Hi there
I am a student and is new to python. I would like to know how to exact a value
from a list that has been opened from a text file in python.
Thanks
Danielle
Sent from my BlackBerry® wireless device
___
Tutor maillist - Tutor@python.org
To u
Hi,
As you will see I am a new beginner of learning python,
I met a problem, hope someone can guide me one or two and help me learn.
Here is the issue.
"e c #3B3B3B " /* "1.15" */,
"f c #343434 " /* "1.19" */,
"g c #2E2E2E " /* "1.23" */,
"h c #272727 " /* "1.27" */,
"i c #212121 " /* "1.
Aaron Brown wrote:
Here is the code I have, and the error.I don't understand the TUPLE problem.
Can someone explain.
The error you get is:
TypeError: 'tuple' object does not support item assignment
This tells you that tuples are immutable (fixed) objects. You cannot do
this:
>>> t = (1,
Here is the code I have, and the error.I don't understand the TUPLE problem.
Can someone explain.
#Main Program
def main():
notGreenCost = (12,float)
goneGreenCost = (12, float)
savings = (12, float)
months = "January ","February","March ","April ","May ","June ","July
","August "
10 matches
Mail list logo