Hello Everyone,
I think my approach is all wrong, but here goes.
var1 = []; var2 = []; var3 = []; . . . ~50 lists
each variable would be a list of two digit integers, or two digit
integers stored as strings (I don't need to do any math, I just need to
know which integers are in which variable
rick wrote:
> Hello Everyone,
>
> I think my approach is all wrong, but here goes.
>
> var1 = []; var2 = []; var3 = []; . . . ~50 lists
>
>
> each variable would be a list of two digit integers, or two digit
> integers stored as strings (I don't need to do any math, I just need to
> know whi
Hi
Are there any recommendations for python ide's
currently I am using idle, which seems pretty decent but am open to any
suggestions
cheers
___
Tutor maillist - Tutor@python.org
To unsubscribe or chang
Hello community,
Newbie here. I have a data (.dat) file with integers (2,9,1,5,7,3,9) in
it just as shown.
My instructions are to sort the numbers and rewrite them back to the
data file.
*here is my code:**
*
lab3int=[2,9,1,5,7,3,9]
lab3int.sort()
print(lab3int)
lab3int=open('lab3int.dat','w
On 02/01/2014 03:35 PM, Alan Gauld wrote:
On 01/02/14 18:41, Ian D wrote:
Is it better to use python 3 as a newcomer who isn't really going to be
writing any software as such just using it for learning?
The more important question is which version does your
preferred tutorial use?
And are y
Hi,
sometimes when I try to run a program in Python I obtain some errors.
The strange thing is that sometimes when I run it a second time or when I
turn off the pc and I restart later to try to make it works it gives
different errors.
How could I avoid this problem? I think that it is because it
thank you so much because I got it :)
On Saturday, February 1, 2014 1:28 PM, Danny Yoo wrote:
On Fri, Jan 31, 2014 at 8:55 PM, hind fathallah
wrote:
> hi can you answer this question for me plz
[question omitted]
Many of us probably could answer this.
But this is not a homework-answerin
On 02/02/14 03:08, adrian wrote:
Newbie here. I have a data (.dat) file with integers (2,9,1,5,7,3,9) in
it just as shown.
In your code below you use a hard coded list not a data file?
lab3int=[2,9,1,5,7,3,9]
lab3int.sort()
print(lab3int)
So far so good.
lab3int=open('lab3int.dat','w')
On 02/02/14 02:11, Gabriele Brambilla wrote:
sometimes when I try to run a program in Python I obtain some errors.
How are you running the program?
doubly clicking in a file manager/explorer?
Running from an OS command line?
Importing from the Python >>> prompt?
Or using some kind of IDE? (Wh
Alan Gauld wrote:
> You need a loop such as
>
> for item in lab3int:
>intFile.write( str(item) )
You also need to separate the values, with a space, a newline or whatever.
So:
for item in lab3int:
intFile.write(str(item))
intFile.write("\n")
This can be simplified to
for item in
On 02/02/14 08:25, Ian D wrote:
Are there any recommendations for python ide's
Lots depending who you ask...
currently I am using idle, which seems pretty decent but am open to any
suggestions
If it works for you then use it.
The thing about IDEs is that they ae very personal.
Some people
On Sun, Feb 2, 2014 at 1:55 PM, Ian D wrote:
> Hi
>
> Are there any recommendations for python ide's
>
> currently I am using idle, which seems pretty decent but am open to any
> suggestions
> cheers
>
While not an IDE in the usual sense I have found IPython a great addition
to my toolkit.
YMMV
Hi
Are there any recommendations for python ide's
currently I am using idle, which seems pretty decent but am open to any
suggestions
cheers
I personally prefer the Linux interpreter. Since you're asking.
Scott
On Sun, Feb 2, 2014 at 10:43 AM, Asokan Pichai wrote:
>
>
>
> On Sun, Feb 2, 2
forwarding to list...
Please use reply-all when responding to the list.
Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
>
> From: Gabriele Brambilla
>To: Alan Gauld
>Sent: Sunday, 2 Febr
>Subject: Re: [Tutor] most useful ide
>
>On 02/02/14 08:25, Ian D wrote:
>
>> Are there any recommendations for python ide's
>
>Lots depending who you ask...
If you ask me: Spyder (free) or PyCharm (free for open source projects) ;-)
___
Tutor maillis
Pycharm is nice for bigger projects (since tou can collapse any section);
but it's crazy resource intensive. For Linux Gedit can be made very nice
for python, and of course vim in the shell is very nice with the right
~/.vimrc.
On Feb 2, 2014 11:20 AM, "scurvy scott" wrote:
> Hi
>
> Are there an
On 14-02-02 01:16 PM, Kodiak Firesmith wrote:
> Pycharm is nice for bigger projects (since tou can collapse any section);
> but it's crazy resource intensive. For Linux Gedit can be made very nice
I prefer Geany as it will run my code with a click of the mouse.
> for python, and of course vim
On Feb 2, 2014 8:17 PM, "Pierre Dagenais" wrote:
>
>
>
> On 14-02-02 01:16 PM, Kodiak Firesmith wrote:
> > Pycharm is nice for bigger projects (since tou can collapse any
section);
> > but it's crazy resource intensive. For Linux Gedit can be made very
nice
>
> I prefer Geany as it will run my co
On 14-02-01 08:20 PM, Steven D'Aprano wrote:
> On Sat, Feb 01, 2014 at 06:41:10PM +, Ian D wrote:
>> Hi
>>
>> Is it better to use python 3 as a newcomer who isn't really going to
>> be writing any software as such just using it for learning?
>
> Yes, you should use Python 3, with one provi
On 02/02/2014 03:10 PM, Pierre Dagenais wrote:
On 14-02-02 01:16 PM, Kodiak Firesmith wrote:
Pycharm is nice for bigger projects (since tou can collapse any section);
but it's crazy resource intensive. For Linux Gedit can be made very nice
I prefer Geany as it will run my code with a click o
W dniu 2014-02-02 18:56, Albert-Jan Roskam pisze:
>> On 02/02/14 08:25, Ian D wrote:
>>
>>> Are there any recommendations for python ide's
>>
>> Lots depending who you ask...
>
> If you ask me: Spyder (free) or PyCharm (free for open source
projects) ;-)
There is also PyCharm Community Edition.
I am new to Python, and I do not know how to traverse lists like I
traverse arrays in C. This is my first program other than "Hello World".
I have a Raspberry Pi and they say Python is the language of choice for
that little machine. So I am going to try to learn it.
I have data in the form of x,
On Sun, Feb 2, 2014 at 3:46 PM, Kipton Moravec wrote:
> I am new to Python, and I do not know how to traverse lists like I
> traverse arrays in C. This is my first program other than "Hello World".
> I have a Raspberry Pi and they say Python is the language of choice for
> that little machine. So
On Sun, Feb 2, 2014 at 6:44 PM, David Hutto wrote:
>
>
>
> On Sun, Feb 2, 2014 at 3:46 PM, Kipton Moravec wrote:
>
>> I am new to Python, and I do not know how to traverse lists like I
>> traverse arrays in C. This is my first program other than "Hello World".
>> I have a Raspberry Pi and they s
Kind of sure this is the translation line for line:
#We define some vars before utilizing them x,and y are list comprehension
# You said int for x, so it's created in ints, and y is in floats
x = [num for num in range(0,496)]
# You said double for y, so the it's created in floats, and x is an int
Kipton Moravec Wrote in message:
> I am new to Python, and I do not know how to traverse lists like I
> traverse arrays in C. This is my first program other than "Hello World".
> I have a Raspberry Pi and they say Python is the language of choice for
> that little machine. So I am going to try to
On Sun, Feb 02, 2014 at 02:46:38PM -0600, Kipton Moravec wrote:
> I am new to Python, and I do not know how to traverse lists like I
> traverse arrays in C.
You can do this, but normally shouldn't:
data = [2, 4, 8, 16, 32]
for i in range(0, len(data)):
x = data[i]
print(x)
That is a mor
On 02/02/2014 04:08 AM, adrian wrote:
Hello community,
Newbie here. I have a data (.dat) file with integers (2,9,1,5,7,3,9) in it just
as shown.
My instructions are to sort the numbers and rewrite them back to the data file.
*here is my code:**
*
lab3int=[2,9,1,5,7,3,9]
lab3int.sort()
print(la
On 02/02/2014 09:10 PM, Pierre Dagenais wrote:
On 14-02-02 01:16 PM, Kodiak Firesmith wrote:
Pycharm is nice for bigger projects (since tou can collapse any section);
but it's crazy resource intensive. For Linux Gedit can be made very nice
I prefer Geany as it will run my code with a click
29 matches
Mail list logo