Re: [Tutor] Help me out please

2016-07-20 Thread Danny Yoo
On Tue, Jul 19, 2016 at 4:31 AM, Marc Sànchez Quibus wrote: > Hi, > First of all I'm gonan introduce myself. My name is Marc and I'm a student > and also a python's programmer begginer. I've been studying/learning python > and now I need some help to finish my project. > I have two scripts, one of

Re: [Tutor] Help me out please

2016-07-19 Thread Bob Gailer
On Jul 19, 2016 9:24 AM, "Marc Sànchez Quibus" wrote: > > Hi, > First of all I'm gonan introduce myself. My name is Marc and I'm a student > and also a python's programmer begginer. I've been studying/learning python > and now I need some help to finish my project. > I have two scripts, one of the

Re: [Tutor] Help me out please

2016-07-19 Thread Alan Gauld via Tutor
On 19/07/16 12:31, Marc Sànchez Quibus wrote: > and now I need some help to finish my project. > I have two scripts, one of them in python (the main script) and the other > one written in html. Well, is just a brief javascript (an app) that I took > by Github. I need to change a variable inside th

[Tutor] Help me out please

2016-07-19 Thread Marc Sànchez Quibus
Hi, First of all I'm gonan introduce myself. My name is Marc and I'm a student and also a python's programmer begginer. I've been studying/learning python and now I need some help to finish my project. I have two scripts, one of them in python (the main script) and the other one written in html. We

Re: [Tutor] help me

2014-03-10 Thread Peter Otten
hind fathallah wrote: > hi I need your help plz with this cods ( I want u to tell wht cod I miss > to stop the while loop whene I get 3 stars) rm = [] I think you are comparing a string and an integer. That gives False even if the values look the same: >>> i = 3 >>> s = "3" >>> print i, s 3 3

Re: [Tutor] help me

2014-03-10 Thread Dave Angel
hind fathallah Wrote in message: > > > while rm != stars:         print\         """         0 - Northe         1 - South         2 - East         3 - Weast         """         rm = raw_input("What room you want to go?: ") Why are you looping till he gets to th

Re: [Tutor] help me

2014-03-10 Thread hind fathallah
hi I need your help plz with this cods ( I want u to  tell wht cod I miss to stop the while loop whene I get 3 stars)  rm = [] stars = 0 ##if stars == "3": ##    print " You win" ##else: ##    print "hh" def ask_yes_no(question):     """Ask a yes or no question."""     answer = None        while a

Re: [Tutor] help me

2014-02-02 Thread hind fathallah
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

Re: [Tutor] help me

2014-02-01 Thread Danny Yoo
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-answering mailing list. The problem itself is not interesting to us. What is interesting is why the problem

Re: [Tutor] help me

2014-02-01 Thread Mark Lawrence
On 01/02/2014 04:55, hind fathallah wrote: hi can you answer this question for me plz Modify the Guess My number program from this chapter so that the player has only five guesses. If the player run out of guess, the program should end the game and display an appropriately chastising message.

[Tutor] help me

2014-02-01 Thread hind fathallah
hi can you answer this question for me plz   Modify the Guess My number program from this chapter so that the player has only five guesses. If the player run out of guess, the program should end the game and display an appropriately chastising message. ___

Re: [Tutor] help me decide

2012-09-06 Thread Matthew Ngaha
hey guys i just like to thank everyone for their input. Its really helped me in deciding a lot of things. also @ Alan i think? as ive started writing this mail it won;t let me look up previous senders but thanks for your input. Also your field of work sounds very interesting indeed. I can't dare to

Re: [Tutor] help me decide

2012-09-05 Thread Wayne Werner
On Tue, 4 Sep 2012, Matthew Ngaha wrote: a) IF you happen to have used both, which one fills you with joy and is more fun for you to program with, GUI programming, or web related / Framework programming? Honestly - both. It's really a highly subjective question and depends what you want to do

Re: [Tutor] help me decide

2012-09-05 Thread Dwight Hutto
No matter what the kit used for GUI, make sure it's well documented, and has plenty of tuts/docs. I used tkinter, and wxpython, and like the widget set/cross OS usages in wxpython better. However, with more experience, now I'm moving toward the Blender Game Engine to give more feel, and a 3-d pop

Re: [Tutor] help me decide

2012-09-05 Thread Steve Willoughby
On 05-Sep-12 10:40, Alan Gauld wrote: On 05/09/12 11:04, Matthew Ngaha wrote: also please could you tell me why you suggest wxPython over GTK? Support, there are probably more beginner friendly resources for wxPython than for GTk, although that is changing. Yeah, and wxPython is a large, co

Re: [Tutor] help me decide

2012-09-05 Thread Alan Gauld
On 05/09/12 11:04, Matthew Ngaha wrote: also please could you tell me why you suggest wxPython over GTK? Support, there are probably more beginner friendly resources for wxPython than for GTk, although that is changing. that wxPython is the easiet to pick up yet a lot more complete than Tk

Re: [Tutor] help me decide

2012-09-05 Thread Prasad, Ramit
From: Matthew Ngaha [snip] > i feel confident using Python now but im still not > sure which direction i want to go in. I would at some point like to > learn how to use GUIs and a web Framework(Django). But i don't know > which of the 2 to start out with. > > a) IF you happen to have used both, wh

Re: [Tutor] help me decide

2012-09-05 Thread Matthew Ngaha
Hi Alan thanks so much for your helpful answers. > probably wxPython or GTk > But if you want to get serious about GUIs I'd probably suggest wxPython > instead - it ultimately is more powerful and complete and if you are only > just starting will be easy to learn whereas learning Tkinter and conv

Re: [Tutor] help me decide

2012-09-04 Thread Matthew Ngaha
hey you didnt read my question:( i dont enjoy either because i have no experience with them. so im asking questions about peoples personal experiences with the 2 areas which can give me further information to research on. ___ Tutor maillist - Tutor@pyth

Re: [Tutor] help me decide

2012-09-04 Thread Matthew Ngaha
sorry wrong i didnt send mail right. hey i didnt explain it properly, i wasn't asking what language to use or learn. I am only going to be using Python. I meant whic area to study on 1st, GUI programing e.g Tkinter or Programming with a web framwork e.g Django. _

Re: [Tutor] help me decide

2012-09-04 Thread leam hall
Matthew, Program what is fun for you. I prefer PHP for web work but I'm learning Python for my day job. Python provides a wider range of abilities but PHP is more "fun" for me. If Python GUIs are fun, then do that. The more you enjoy the topic the more reason you will have to learn more and more.

[Tutor] help me decide

2012-09-04 Thread Matthew Ngaha
hey guys as i program more, i think of silly questions i would like answers to. if anyone doesnt mind entertaining my question, please do answer:) I have just about finished my beginner tutorial, just a few exercises left. i feel confident using Python now but im still not sure which direction i wa

Re: [Tutor] Help me in this programme

2011-10-06 Thread Alan Gauld
On 06/10/11 08:15, Praveen Singh wrote: CountWords("google") [('e',1),('g',2),('l',1),('o',2)] by the level of this question you can easily understand i am new in python.the problem i am facing is how to make set of word and count(e,1) and add this to list?? Some clues: a for loop will itera

[Tutor] Help me in this programme

2011-10-06 Thread Praveen Singh
this is one of the problem based on list which i found at pyschool. CountWords("google") [('e',1),('g',2),('l',1),('o',2)] by the level of this question you can easily understand i am new in python.the problem i am facing is how to make set of word and count(e,1) and add this to list?? __

Re: [Tutor] Help me understand this tkinter related code

2010-02-26 Thread Alan Gauld
Please don't hijack an old message to create a new subject. Those of us using threaded readers might not see it and you lose potential answers. "Robert DeLaurentis" wrote The local function change_volume(v) requires the argument v to operate properly, but I'm unclear where the value of that a

[Tutor] Help me understand this tkinter related code

2010-02-26 Thread Robert DeLaurentis
I've just begun learning Python and programming using the Head First Programming from O'Reilly. The following code works on my Mac just fine, but there is a mystery as to how its working that escapes me so far. The local function change_volume(v) requires the argument v to operate properly, but

Re: [Tutor] help me and ill love u!!! :)

2007-03-23 Thread Rikard Bosnjakovic
On 3/21/07, p l <[EMAIL PROTECTED]> wrote: > im a new python programmer and iv been given a task to get as much details > that i can on my system memory... Since this is very low level hacking, you need to specify which operating system you use. -- - Rikard - http://bos.hack.org/cv/ _

[Tutor] help me and ill love u!!! :)

2007-03-21 Thread p l
hello tutor! im a new python programmer and iv been given a task to get as much details that i can on my system memory... now, i have allready found how to get the total physical memory and the avalible memory.. iv also found how to get the virtual mem and a few more stuff... but now im stuck!!

Re: [Tutor] help me to do my exercise

2007-03-05 Thread Alan Gauld
"Vasile Filat" <[EMAIL PROTECTED]> wrote > I just started learning Python from a book translated intro > Russian. It is my first exercise from the book and I don't > know why it is not working. OK, First please send the code as text rather than as an image. It makes it much easier to comment when

Re: [Tutor] help me to do my exercise

2007-03-05 Thread Eric Walstad
In addition to what the others have said, you have a syntax error on line 7 of your leap.py file. The 'for' loop will want an iterable to loop over. The syntax error relates to the list you are trying to use, a slice of sys.argv. Remember, lists are denoted by square brackets '[' and ']'.

Re: [Tutor] help me to do my exercise

2007-03-05 Thread Christopher Arndt
Vasile Filat schrieb: > Help me please to correct my code which I will include below. It is customary to include code examples either inline in your message or attach them as a plain text source code file. Some mailing list frown on attachments in general (but this one doesn't, to my knowledge), b

Re: [Tutor] help me to do my exercise

2007-03-05 Thread Rikard Bosnjakovic
On 3/5/07, Vasile Filat <[EMAIL PROTECTED]> wrote: > I just started learning Python from a book translated intro Russian. It is my > first exercise from the book and I don't know why it is not working. Help me > please to correct my code which I will include below. You need to tell us why it's

Re: [Tutor] Help me with this problem relating to datetime

2006-11-16 Thread Asrarahmed Kadri
Thanks for your reply, John. I'll get back to you if I get stuck. Regards, Asrarahmmed On 11/16/06, John Fouhy <[EMAIL PROTECTED]> wrote: On 16/11/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > Hi Folks, > > > I have got a date (as string), time (as string) , number of slots ( integer) > a

Re: [Tutor] Help me with this problem relating to datetime

2006-11-15 Thread John Fouhy
On 16/11/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > Hi Folks, > > > I have got a date (as string), time (as string) , number of slots ( integer) > and delta ( which is in seconds). > I want to create a dictionary which has got date as the key, and the value > should be a tuple with two eleme

Re: [Tutor] Help me with this problem relating to datetime

2006-11-15 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > Hi Folks, > > > I have got a date (as string), time (as string) , number of slots ( > integer) and delta ( which is in seconds). > I want to create a dictionary which has got date as the key, and the > value should be a tuple with two elements (start_time, end_time).

Re: [Tutor] Help me with this problem relating to datetime

2006-11-15 Thread Asrarahmed Kadri
SOrry for that. I was wondering if someoen can give a hint about the implementation. I am not asking for the actual code. Regards, Asrarahmed On 11/16/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote: > Hi Folks, > > > I have got a date (as string), time (as string) , nu

[Tutor] Help me with this problem relating to datetime

2006-11-15 Thread Asrarahmed Kadri
Hi Folks, I have got a date (as string), time (as string) , number of slots ( integer) and delta ( which is in seconds). I want to create a dictionary which has got date as the key, and the value should be a tuple with two elements (start_time, end_time). I will take start_time and find the end

Re: [Tutor] Help me with installing Soappymodule

2006-11-08 Thread Kent Johnson
Asrarahmed Kadri wrote: > > Hi Folks, > > I want to install SOAPpy module. As stated on > http://pywebsvcs.sourceforge.net/soappy.txt, there are two modules that > should be installed prior to installing SOAPpy. One in pyXML and the > other is fpconst. I installed pyXML from the URL stated on

[Tutor] Help me with installing Soappymodule

2006-11-07 Thread Asrarahmed Kadri
Hi Folks,   I want to install SOAPpy module. As stated on http://pywebsvcs.sourceforge.net/soappy.txt, there are two modules that should be installed prior to installing SOAPpy. One in pyXML and the other is fpconst. I installed pyXML from the URL stated on teh above website. But the URL for fpcon

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Danny Yoo
On Sun, 5 Nov 2006, Asrarahmed Kadri wrote: > When I am running the script from the command line, its working fine but > when I am trying to run from Pythonwin, its giving me error. > > Can anyone explain the reason? Hi Asrarahmed, Did you see Kent's reply? He mentioned: >> Something strange

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Asrarahmed Kadri
When I am running the script from the command line, its working fine but when I am trying to run from Pythonwin, its giving me error.   Can anyone explain the reason?   Regards, Asrarahmed  On 11/5/06, Kent Johnson <[EMAIL PROTECTED]> wrote: Dustin J. Mitchell wrote:> Asrarahmed Kadri wrote:>> "C:\

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Dustin J. Mitchell
Kent Johnson wrote: > Dustin J. Mitchell wrote: >> Asrarahmed Kadri wrote: >>> "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", >>> line 310, in RunScript >>> exec codeObject in __main__.__dict__ >>> File "C:\project stuff-programs\Scriptdate.py", line 18, in ? >>>

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Kent Johnson
Dustin J. Mitchell wrote: > Asrarahmed Kadri wrote: >> "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", >> line 310, in RunScript >> exec codeObject in __main__.__dict__ >> File "C:\project stuff-programs\Scriptdate.py", line 18, in ? >> t1 = my_version_datecheck.

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Dustin J. Mitchell
Asrarahmed Kadri wrote: > "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", > line 310, in RunScript > exec codeObject in __main__.__dict__ > File "C:\project stuff-programs\Scriptdate.py", line 18, in ? > t1 = my_version_datecheck.dateCheck(dt1,0) > File "my_ver

[Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Asrarahmed Kadri
Hi Folks,   I have a function defined in a module. I am using this module in a script but its giving me error: the traceback is as follows:     29/2/2003['29', '2', '2003']Traceback (most recent call last):  File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, i

Re: [Tutor] Help me with graphs...using tkinter

2006-11-01 Thread Michael Lange
Hi Asrarahmed, On Wed, 1 Nov 2006 16:16:31 + "Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote: > Hi folks, > > I want to draw bar-charts using Tkinter. I am not able to find material on > this topic. > have a look at the Canvas widget and especially at its create_rectangle() method. Document

[Tutor] Help me with graphs...using tkinter

2006-11-01 Thread Asrarahmed Kadri
Hi folks,   I want to draw bar-charts using Tkinter. I am not able to find material on this topic.   Help me   Regards, Asrarahmed     -- To HIM you shall return. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tut

Re: [Tutor] Help me.. problem in building calculator application

2006-10-26 Thread Paulino
> > Message: 7 > Date: Thu, 26 Oct 2006 13:31:37 +0100 > From: "Asrarahmed Kadri" <[EMAIL PROTECTED]> > Subject: [Tutor] Help me.. problem in building calculator application > To: pythontutor > Message-ID: > <[EMAIL PROTECTED]> > Content-Ty

Re: [Tutor] Help me.. problem in building calculator application

2006-10-26 Thread Kent Johnson
Asrarahmed Kadri wrote: > > > Hi folks, > > I am trying to build a rudimentary calculator application using Tkinter... > > I have used one Entry widget for displaying the input and output data. > All this is put in a class. > The porblem is when I click teh '+' button, teh callback function

[Tutor] Help me.. problem in building calculator application

2006-10-26 Thread Asrarahmed Kadri
    Hi folks,  I am trying to build a rudimentary calculator application using Tkinter...   I have used one Entry widget for displaying the input and output data. All this is put in a class. The porblem is when I click teh '+' button, teh callback function is called but it gives me an error message

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > I changed to append mode and it is working. > But the thing is that I have another problem. > I am trying to insert usernames that are unique. Please look at the > code and help me. > > import sys > > fd = open('usr.txt','a') > append mode is write-only. more comments f

Re: [Tutor] Help me abt this error

2006-10-17 Thread Asrarahmed Kadri
I changed to append mode and it is working. But the thing is that I have another problem. I am trying to insert usernames that are unique. Please look at the code and help me. import sys fd = open('usr.txt','a') def chk(str):    global fd    fd.seek(0,0)    print fd    done = 0    list1 = []    an

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
: [Tutor] Help me abt this error Asrarahmed Kadri wrote: I am trying to write to a file, but I am getting this errror. IOError: (0, 'Error') Can someone explain what is it and whats the solution?? No. Give us the actual source and the full traceback. Cheers, -Luke

Re: [Tutor] Help me abt this error

2006-10-17 Thread Danny Yoo
> I am trying to write to a file, but I am getting this errror. > > IOError: (0, 'Error') > > Can someone explain what is it and whats the solution?? Hi Asrarahmed, Did you read my response from the last few days? http://mail.python.org/pipermail/tutor/2006-October/049958.html Did you find

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > I am trying to write to a file, but I am getting this errror. > > IOError: (0, 'Error') > > Can someone explain what is it and whats the solution?? No. Give us the actual source and the full traceback. Cheers, -Luke ___ Tutor

[Tutor] Help me abt this error

2006-10-17 Thread Asrarahmed Kadri
I am trying to write to a file, but I am getting this errror.   IOError: (0, 'Error')   Can someone explain what is it and whats the solution??  Thanks.   Regards, Asrar ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help me : Why this code is not working??

2006-10-12 Thread Asrarahmed Kadri
Thanks a lot. It was quick. I will send the traceback from now on.   -Asrar  On 10/13/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:>>> I have created two buttons. The code for button2 is not working as I > want it to be. When I click button2, the application should exit,

Re: [Tutor] Help me : Why this code is not working??

2006-10-12 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > > I have created two buttons. The code for button2 is not working as I > want it to be. When I click button2, the application should exit, but > it isnt. > Can someone fix it?? > > from Tkinter import * > from tkMessageBox import * > > def callback(): > showinf

[Tutor] Help me : Why this code is not working??

2006-10-12 Thread Asrarahmed Kadri
    I have created two buttons. The code for button2 is not working as I want it to be. When I click button2, the application should exit, but it isnt. Can someone fix it?? from Tkinter import *from tkMessageBox import * def callback():    showinfo('message','I am here...') def QUIT():    ans = as

Re: [Tutor] Help me with this Tkinter code

2006-10-11 Thread Michael Lange
On Tue, 10 Oct 2006 23:32:57 +0100 "Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote: > The error message is as under: > > > *Microsoft Visual C++ Runtime Library* > > * Runtime Error! > Program: C:\python\Lib\site-packages\pythonwin\Pythonwin.exe* > > * This application has requested the Runtime

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Alan Gauld
> yeh, I am using IDLE. > why, is it a problem?? IDLE is a Tkinter program. So you are trying to run a Tkinter program inside a Tkinter program which can confuse things. The latest versions of IDLE are a lot better but I stilll strongly recommend running any Tkinter , indeed any GUI) programme, fr

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Asrarahmed Kadri
The error message is as under:   Microsoft Visual C++ Runtime Library  Runtime Error! Program: C:\python\Lib\site-packages\pythonwin\Pythonwin.exe  This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more inforamtion.Any i

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread John Fouhy
On 11/10/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > shouldn't you mainloop your root? By convention, you should, but you don't have to. mainloop is mainloop; calling it on root just makes it easy to find. -- John. ___ Tutor maillist - Tutor@

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Asrarahmed Kadri
yeh, I am using IDLE. why, is it a problem??  On 10/10/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:>>> Folks,>> Just started to get my feet wet with basics of Tkinter Programming. > Here is a code which is giving me some problem; when I run it, it> displays me the button

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Asrarahmed Kadri
i changed the code from widget.mainloop() to root.mainloop(); but still its not working     On 10/10/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: yeh, I am using IDLE. why, is it a problem??  On 10/10/06, Luke Paireepinart <[EMAIL PROTECTED] > wrote: Asrarahmed Kadri wrote:>>> Folks,>> Just s

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > > Folks, > > Just started to get my feet wet with basics of Tkinter Programming. > Here is a code which is giving me some problem; when I run it, it > displays me the button widget, but when I click it, the window doesn't > goes away. the program gets stuck up.

[Tutor] Help me with this Tkinter code

2006-10-10 Thread Asrarahmed Kadri
    Folks,   Just started to get my feet wet with basics of Tkinter Programming. Here is a code which is giving me some problem; when I run it, it displays me the button widget, but when I click it, the window doesn't goes away. the program gets stuck up. Can anyone help me to resolve this issue??

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-09 Thread János Juhász
Dear Asrarahmed, I have found the next recipe in the cookbook. It should be interesting for you :) http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/392153 > Message: 1 > Date: Thu, 05 Oct 2006 10:26:19 -0400 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Kent Johnson
Asrarahmed Kadri wrote: > Its something very close. > What I want is: > > 1 > 1 1 > 1 2 1 > 1 3 3 1 > 1 4 6 4 1 > > This can be done using arrays, right or is there any other way?? Is this a homework assignment? A list of lists seems like the appropriate way to represent this, especially sin

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Asrarahmed Kadri
Thank you so much. I am trying to implement. I hope I can do it.   A gentle note: This is not a homework question. I am learning python as a part of my Project work.   On 10/5/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:> Its something very close.> What I want is:>> 1> 1

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > Its something very close. > What I want is: > > 1 > 1 1 > 1 2 1 > 1 3 3 1 > 1 4 6 4 1 > > This can be done using arrays, right or is there any other way?? They're not arrays, they're lists! arrays imply contiguous memory blocks and single data types. Lists are neither

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Asrarahmed Kadri
Its something very close. What I want is:   1 1 1 1 2 1 1 3 3 1 1 4 6 4 1   This can be done using arrays, right or is there any other way?? My logic in C is:   int arr[5][5]; for (i=0;i<5;i++) {    flag = 0;    for (j=0;j<=i;j++) {    if (flag == 0 || j == i)  // print 1 if the array element is th

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Danny Yoo
I am stuck.. Please help me with implementing two dimensional array in Python. Hi Asrarahmed, What do you need a two-dimensional array for? This is a serious question: what's your application? What are you trying to represent, and why? As a glib possible answer: you can use a di

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Matthew White
Asrarahmed, How about something like this: >>> arr = [] >>> arr.append(['Blue', 'Yellow', 'Green', 'Brown', 'White']) >>> arr[0][0] 'Blue' >>> arr.append(['Up', 'Down', 'Left', 'Right', 'Center']) >>> arr[1][4] 'Center' Is this what you were thinking of? -mtw On Wed, Oct 04, 2006 at 06:38:09P

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Kent Johnson
Asrarahmed Kadri wrote: > > I am looking for something like this: > > int arr[5][5]; // C statement; declaring an array of 5 * 5 size > > Is there an easy and clean way to achieve this in python??? Can you say something about your use case? If I had to guess I would say numpy is what you ar

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Asrarahmed Kadri
  I am looking for something like this:   int arr[5][5]; // C statement; declaring an array of 5 * 5 size   Is there an easy and clean way to achieve this in python???   Thanks   On 10/4/06, Kent Johnson <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:>> Hi folks,>> I am stuck.. Please help me wi

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Kent Johnson
Asrarahmed Kadri wrote: > > Hi folks, > > I am stuck.. Please help me with implementing two dimensional array in > Python. Nested lists are the simplest way though beware the gotcha shown here: http://www.python.org/doc/faq/programming/#how-do-i-create-a-multidimensional-list You can also use

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > Hi folks, > > I am stuck.. Please help me with implementing two dimensional array in > Python. > There are no such things as arrays in Python, silly! I can help you with a two-dimensional list, though :) Okay, imagine that a list of integers (or any other objects)

[Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Asrarahmed Kadri
Hi folks,   I am stuck.. Please help me with implementing two dimensional array in Python.   Thanks.   -- To HIM you shall return. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help me make it look pretty!

2006-07-21 Thread Kent Johnson
John CORRY wrote: > > Good evening all. > > > > I am writing a program using python 2.4, glade 2 and pygtk. It takes > input from the user using textentry boxes. The input should be a > number. When the user keys the data in, it automatically left > justifies. The function below, takes the

Re: [Tutor] Help me make it look pretty!

2006-07-21 Thread Michael Lange
On Thu, 20 Jul 2006 20:16:58 +0100 "John CORRY" <[EMAIL PROTECTED]> wrote: > Good evening all. > > I am writing a program using python 2.4, glade 2 and pygtk. It takes > input from the user using textentry boxes. The input should be a > number. When the user keys the data in, it automatically

[Tutor] Help me make it look pretty!

2006-07-20 Thread John CORRY
Good evening all.   I am writing a program using python 2.4, glade 2 and pygtk.  It takes input from the user using textentry boxes.  The input should be a number.  When the user keys the data in, it automatically left justifies.  The function below, takes the input for four boxes and rig

Re: [Tutor] Help me please

2006-03-15 Thread Kent Johnson
yogeshwarran Nadeson wrote: > Hello, > > I am a newbie in python programming without previous programming > experience.Here i would like to ask > a question based on the exercises given by Josh Cogliatti in his > tutorial.I'll paste the question.Hope you can help me to solve it.I'd > like to en

[Tutor] Help me please

2006-03-14 Thread yogeshwarran Nadeson
Hello, I am a newbie in python programming without previous programming experience.Here i would like to ask a question based on the exercises given by Josh Cogliatti in his tutorial.I'll paste the question.Hope you can help me to solve it.I'd like to end it by saying thanks for all yourr help. :Mod

Re: [Tutor] Help me

2005-11-15 Thread Adam
On 15/11/05, sivapriya pasupathi <[EMAIL PROTECTED]> wrote: Hi There, I am planning to start my career in computer programming.But i don't have specific resource(websire/book) to improve my basic computer programming skills.If you know any helpful resources,please let me know.   Thanks in advanc

Re: [Tutor] Help me

2005-11-15 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Danny Yoo > > On Tue, 15 Nov 2005, sivapriya pasupathi wrote: > > > I am planning to start my career in computer programming.But i don't > > have specific resource(websire/book) to improve my basic c

Re: [Tutor] Help me

2005-11-15 Thread Danny Yoo
On Tue, 15 Nov 2005, sivapriya pasupathi wrote: > I am planning to start my career in computer programming.But i don't > have specific resource(websire/book) to improve my basic computer > programming skills.If you know any helpful resources,please let me know. Hi Priya, Welcome aboard! If yo

[Tutor] Help me

2005-11-15 Thread sivapriya pasupathi
Hi There, I am planning to start my career in computer programming.But i don't have specific resource(websire/book) to improve my basic computer programming skills.If you know any helpful resources,please let me know.   Thanks in advance. Priya. Yahoo! FareChase - Search multiple travel sites

Re: [Tutor] HELP ME DUDE

2005-07-23 Thread Liam Clarke
Also, please use punctuation and paragraphs. I'm not a grammar Nazi per se, but sheesh, that stuff is unreadable. And, as a general rule, a 56 kilobits pers second will download at 5.6 Kilobytes per second at the very best. You're lucky to get 4 Kilobytes per second. Hence, ADSL is good. On 7/23

Re: [Tutor] HELP ME DUDE

2005-07-22 Thread byron
Quoting Suranga Sarukkali <[EMAIL PROTECTED]>: > Hay, you know what? when I connect to the internet the modem software(Error > Free Software for Sure) say's a around 50-53.3Kbps connected though when I > download a file from a server not p2ps or any of the kind service the > downloads are even wh

[Tutor] HELP ME DUDE

2005-07-22 Thread Suranga Sarukkali
Hay, you know what? when I connect to the internet the modem software(Error Free Software for Sure)  say's a around 50-53.3Kbps connected though when I download a file from a server not p2ps or any of the kind service the downloads are even when connection is idle without any other method of

Re: [Tutor] help me on python + snack

2005-05-18 Thread Michael Lange
On Tue, 17 May 2005 21:18:09 -0700 (PDT) Mahmad Sadique Hannure <[EMAIL PROTECTED]> wrote: Hi Mahmad, > Hello friends, > I m currently working on sound stuff. I have installed > all stuff related to Snack. My code for playing mp3 > song is like this > > #!/usr/bin/python2.3 > > from Tkinter imp

[Tutor] help me on python + snack

2005-05-17 Thread Mahmad Sadique Hannure
Hello friends, I m currently working on sound stuff. I have installed all stuff related to Snack. My code for playing mp3 song is like this #!/usr/bin/python2.3 from Tkinter import * import tkSnack def main(): root = Tk() tkSnack.initializeSnack(root) mysound = tkSnack.So

Re: [Tutor] help me please!!!

2005-03-11 Thread Brian van den Broek
[EMAIL PROTECTED] said unto the world upon 2005-03-11 20:21: ok i just restarted my pc and it works now thank you ..ok when i go to the start menu then go to all programs then to python 2.4 it gives me five things ok it says IDLE (python GUI) Module Docs python (command line) python manuals unins

Re: [Tutor] help me please!!!

2005-03-11 Thread Brian van den Broek
[EMAIL PROTECTED] said unto the world upon 2005-03-11 19:00: Ok some thing is messed up.. when i try to open the python shell i get a error meesage saying socket error:connection refused and the head line at the top says IDLE subprocess error.. and then the python shell pops up with a e

[Tutor] help me please!!!

2005-03-11 Thread Jeff420harris00
Ok some thing is messed up.. when i try to open the python shell i get a error meesage saying socket error:connection refused and the head line at the top says IDLE subprocess error.. and then the python shell pops up with a error message on it saying. IDLE's subprocess didn't make con