se any data base which you want to use.
Thomas
Selon Asrarahmed Kadri <[EMAIL PROTECTED]>:
> Hi folks,
>
> I want to develop an application which uses a database and some forms to
> enter/modify the database.
> The application should also generate reports based on some fields.
Database..
Thanks in anticipation.
Best Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi folks,
I am trying to save a tkinter canvas using canvas.postscript() method...
The thing works fine when the canvas size is small; but it gets cut (from
the top and left side) when the size increases..
Here is the code:
c.postscript(file=filename,height = canvas_height,width =
canvas_width,
Hello Folks,
Is it possible to add a Label to tkinter canvas or i'll need to use
create_text method ?
Thanks in anticipation..
Best Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
and
the canvas..
Is there a method that redraws the toplevel windows that is holding the
widgets
If yes, then can you suggest me how to do it..
Thanks in anticipation.
Regards,
Asrarahmed Kadri
On 1/16/07, Alan Gauld <[EMAIL PROTECTED]> wrote:
"Asrarahmed Kadri" &
Hi Folks,
I have a Tkinter canvas on which there are two axes: X and Y and a
horizontal bar chart.
I want to provide with a functionality of changing the font size, in this
case the width of the lines.
Is it possible to do it dynamically; I mean the graph is already drawn, now
with a Menu, supp
Hey Luke,
The dialog box, what I think is better than a 'visual warning' ; because it
forces the user to correct the input error that he has made. A visual
warning might be omitted by the user.
REgards,
Asrarahmed
On 1/7/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
Alan Gauld wrote:
> "Luk
Hello Folks,
I am using Pmw mdoule to develop a User interface and in that I am using
entry widget.
Can some one help me how to add validation : only integers are allowed and
minimum value should be 1.
timeInterval = Pmw.EntryField(label_text='Time Interval(in
sec.):',labelpos='w',validate = 'n
Hi Folks,
Just a bit curious about how python runs the program?
I do know that it does not compile the code; its an interpreted language.
Do we have something like Python virtual machine ??
Please hlep me to understand these things.
Regards,
Asrarahmed
--
To HIM you shall return.
___
Hi Folks,
Is it possible to catch exception raised in module A to be caught in module
B.
If yes, then please let me know how to do it.
TIA.
Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http
Hi Folks,
I have a window that contains bar chart on a Canvas (tkinter). Is there a
way in which I can provide the user the option of saving it as an image
file.
Some pointers needed..
thanks in anticipation.
Regards,
Asrarahmed Kadri
--
To HIM you shall return
Hi Folks,
I have a Tkinter canvas and a yscrollbar attached to it. It is working fine
but what I want is that when the mouse is in the canvas region, the scroll
button of the mouse should be able to control the upward and downward
movement, How to achieve this?
Regards,
Asrarahmed Kadri
--
To
should be positioned at the top..
I hope I am clear about my question.
Thanks in anticipation.
Best Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I got that point, what I want is how the dimensions of the canvas would be
adjusted so as to incorporate this Y-axis variable length?
Do I need a scrollbar for that??
Thanks in advance.
Regards,
Asrarahmed Kadri
On 12/6/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
"Asrarahmed Kad
ly it means the length of the Y-axis), as per the number of
data-items being displayed.
There can be 5 items or there can be 100, so how to manage this issue?
Any input would be highly appreciated ..
Thanks.
Best Regards,
Asrarahmed Kadri
--
To HIM you shall r
Hi folks,
Is it possible to pass parameters using bind ?
I mean to say that suppose I have two lists, and I want to pass them to the
event handling function. Is that possible using bind?
Thanks.
Regards,
Asrarahmed Kadri
--
To HIM you shall return
Hi folks,
Is it possible to get the screen size using a standard API of Tkinter?
And also any function to position the window in the center of the screen..??
Thanks in anticipation.
Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor
I read the URL suggested by Simon, In that URL, it is given how to create
the SOAP ENVELOPE using
httplib, so why bother about using SOAPpy...??
Any comments...
Best Regards,
Asrarahmed Kadri
On 11/28/06, Simon Brunning <[EMAIL PROTECTED]> wrote:
On 11/28/06, Asrarahmed Kadri &
Hi folks,
What does this mean?
_url = 'http://api.google.com/search/beta2'
_namespace = 'urn:GoogleSearch'
Single underscore as a prefix in variable naming...?? whats it for??
Any idea..
Regards,
Asrarahmed
--
To HIM you shall return.
___
Tutor mai
Hi folks,
I am using SOAPpy module to make SOAP requests.
Can someone point me documentation that has list of functions that can be
used for carrying out various tasks.
Thanks in anticipation.
Best Regards,
Asrarahmed Kadri
--
To HIM you shall return
Hello folks,
Can someone help me with a simple algorithm to generate permutations of a
given string:
Input string:>> 'abc'
Output:--->> ['abc','acb','bac','bca','cab'
ot done:
line = fd.readline()
if line == '':
done = 1
else:
for i in line:
dict[i] = int(dict[i]) + 1# dict is a dictionary containing
numbers as the keys and initial value 0 for each key
HTH,
Regards,
Asrarahmed Kadri
On 11/26/06, Moedeloos Overste &
Hi folks,
I have a couple of programs that I want to test on a different machine..
I have developed these on Win-XP platform, but I want to test them on my
college's machine, which is running Linux.
Are there any issues involved or i just need to take my files on a USB
memory stick, and copy pa
,
Asrarahmed Kadri
On 11/24/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:
>
>
> Hi Folks,
>
> I am constructing a bar-chart using Tkinter. The function takes a list
> 'data' and draws horizontal bar for each value.
> Now what I want is th
canvas.create_line(150,350,150,50,width=2)# Y-axis
canvas.pack()
draw_rect(canvas,data,x1=150,y1=340,x2=250,y2=330)
root.mainloop()
Thanks a lot.
Best Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
-ordinate pairs of next bar ??
TIA.
BEst Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
_st_time = Label(frame3,text='Start Time:')
label_st_time.grid(row=3,sticky=W)
label_ed_time = Label(frame3,text='End Time:')
label_ed_time.grid(row=4)
Best Regards,
Asrarahmed Kadri
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I installed fpconst, and soappy and its working fine.
I dont remember how I managed to get those working.. Yeah, I definitely
downloaded from the Internet.
REgards,
Asrarahmed
On 11/22/06, Tim Golden <[EMAIL PROTECTED]> wrote:
| Can some one provide me with the SOAPpy documentation; I mean
|
Hi folks,
Can some one provide me with the SOAPpy documentation; I mean a kind of list
of the functions available in the module and the details of those functions.
Thanks in anticipation.
Best Regards,
Asrarahmed Kadri
--
To HIM you shall return
Thanks.
It means, you take a datetime object and then using a timedelta object,
perform the addition, the language takes care of changing the date if the
time crosses midnight.
WOW... this makes life a lot easier..
Have a brilliant evening.
Best Regards,
Asrarahmed Kadri
On 11/18/06, Kent
Hi ,
I have a question:
Is it possible to add seconds to a datetime object and get the result as a
new datetime object. I mean when we keep adding, for example, 3600 seconds,
the date will get changed after 24 iterations. Is it possible to carry out
such an operation ?
TIA.
Best Regards,
Asrar
Hi,
I want to extract hh:mm:ss from below mentioned code:
import datetime
t = datetime.datetime.now()
print t
2006-11-16 16:59:02.843000
How to do it?
TIA.
Regards,
Asrarahmed
--
To HIM you shall return.
___
Tutor maillist - Tutor@python.org
htt
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
Its not me and I dont know what is Django. :)-
Asrarahmed
On 11/16/06, Simon Brunning <[EMAIL PROTECTED]> wrote:
On 11/16/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote:
> I am trying to view this URL:
> http://www.developeriq.com/aboutus.php3.
>
> But my browser
Hi ,
I am trying to view this URL: http://www.developeriq.com/aboutus.php3.
But my browser (IE 7) is giving me the following message;
It worked!
Congratulations on your first Django-powered page.
Of course, you haven't actually done any work yet. Here's what to do next:
If you plan to use a d
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
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
Hi Folks,
I have a textbox and a button (in tkinter). What I want is the following functionality: The user enters a number in the text box and presses the button. The event will call a function called "adder" and when the user enters another value and presses the button, the 'adder' funct
Hi Folks,
I am trying to create a XML document and then writing it to a file, But the porblem is that I have to run the program twice before the contents are written to the file. Can you explain the reason for such a strange behaviour ?? The code is as below:
from elementtree import Eleme
Hi Folks,
I am trying to parse XML documents using elementtree.
I have just started with it. Can somebody help me with how to select nodes with a particular atribute set to some value. For example, I have the following file. Now I want to access the founder element of the company whose attribu
Hi Folks,
Can someone tell me which is teh latest version of Python on windows platform?
TIA.
Best Regards,
Asrarahmed Kadri-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi,
I have successfully installed the SOAPpy module. The version is 0.11.6
I am trying to run simple test program for server and cliet. The script for server is executing without any error; but the client script is giving me the error as below.
TRACEBACK:
C:\project stuff-programs>python cli
Hi,
I have successfully installed the SOAPpy module. The version is 0.11.6
I am trying to run simple test program for server and cliet. The script for server is executing without any error; but the client script is giving me the error as below.
TRACEBACK:
C:\project stuff-programs>python c
Hi Folks,
Just a quick advice of using Python Enthought Edition along with ActiveState Python.
TIA.
Regards,
Asrarahmed-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
other one is fpconst.
I installed the pyxml module, but the link for installing fpconst is not working.
Any idea.
BEst Regards,
Asrarahmed
On 11/8/06, Christopher Arndt <[EMAIL PROTECTED]
> wrote:
Asrarahmed Kadri schrieb:> I want to install the SOAPpy module on my windows box. I ha
Hi Folks,I want to install the SOAPpy module on my windows box. I have python2.4.3Can you help me with the steps and the URL from where can I get thedownload..??TIA.
Regards,Asrarahmed
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.
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
Hi Folks,
I have written a function that takes a date and an integer representing the number of days.
Please test it, comment on the logic .
Here is the code:
""" The function takes two arguments, date and number of days. It checks for the right format and if the format is okay, it calc
Hi Eli,
You really dont have to edit the search path, because if all the files lie in the same-directory as the top-level file, then Python automatically includes that directory in its search path.
HTH,
Regards,
Asrarahmed
On 11/6/06, Eli Brosh <[EMAIL PROTECTED]> wrote:
Hello.
I am beginnin
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 wr
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
Hi Folks,
I want to know how we can print the error message when an exception is generated. I mean "the exact error message that is generated by the python interpreter."
My code is as under:
def check_date(date,num_days): # this function takes a date and number of days and returns the st
Hi Folks,
I dont know much about Regular Expressions. But I just want to share my ideas.
I was trying to implement error checking code on the date argument:
I did this:
import re
# the user should enter date in the format: dd/mm/
p = re.compile('\d\d/\d\d/\d\d\d\d')
m = p.match(da
Hi Folks,
I am trying to build a program which takes the following command-line arguments:
-s -D -n -t
the first argument which is -s (for source) can be replaced by -d (for destination) or -o (for observer) or -r (for reporter). Now what I want is to make sure that the user only s
Sorry.
I will try to first go to GOOGLE and if I cannot find there, then I'll post my query.
Thanks for all the support till now.
Regards,
Asrarahmed
On 11/3/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:>> Hi Folks,>> I want to implement a simpl
Hi Folks,
I want to implement a simple program that verifies the IP provided by the user is in the right format or not.
How to go about it..?
Any suggestions..
TIA.
Regards,
Asrarahmed
-- To HIM you shall return.
___
Tutor maillist - Tutor@pyt
Hello Guys...
I want to perform arithmetic operations on date supplied by the user on the command line.
Is there any built-in utility for this..??
TIA.
Regards,
Asrarahmed
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.or
I got the command and saw its output..? But where to look for the source code..?
Which library ?
TIA.
Regards,
Asrarahmed
On 11/2/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:>>> Folks,>> Does anybody have an idea of the logic used in cal comman
Folks,
Does anybody have an idea of the logic used in cal command... I want to know the algorithm so that I can implement in Python.
A pseudo code might be helpful...
TIA.
Regards,
~Asrarahmed~
-- To HIM you shall return.
___
Tutor maillist -
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
Hi folks,
How can I know that the user has pressed a particular key or a combination of keys.. for example 'q' or 'Ctrl-c' ?
Thanks in anticipation.
Regards,
Asrarahmed
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
h
Thanks a lot, Danny.
Yeah, my goal is to do XML parsing and for that I will be using ElementTree.
As you pointed out, regular expressions are very powerful, so I better get some idea of about them.
Cheers.
Asrarahmed
On 10/30/06, Danny Yoo <[EMAIL PROTECTED]> wrote:
> Is it useful to know re mod
Hi Folks,
Is it useful to know re module and its functions..??
Or the string module has enough utilities to accomplish string manipulation..!!!
Any suggestions??
Regards,
Asrarahmed
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.
Use this:
if type(a) == type(1):
print "a is int %d"
elif type(a) == type(1.1):
...
HTH..
Regards,
Asrarahmed Kadri
On 10/27/06, Etrade Griffiths <[EMAIL PROTECTED]> wrote:
HiI want to check the type of a variable so that I know which format to usefor
D.
To be honest, I am used to the nice and lucid style of the wonderful people on this forum.. :)-
Regards,
Asrarahmed Kadri
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi Folks,
ANy comments about ELementTree module...
I have heard that it is more 'Pythonic'...
I need some basic examples to start learning the stuff.. If anyone has got the information, please pass it along..
Thanks.
Regards,
Asrarahmed Kadri-- To HIM you sh
ide=LEFT)
self.buttonMul = Button(self.container3,text='*',command = lambda: self.oprClick('*',self.str1.get())) self.buttonMul.pack(side=LEFT)
self.buttonDiv = Button(self.container3,text='/',command = lambda: self.oprClick('/',self.str1.get()))
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
this. instead of self. =D
Great post!
On 10/25/06, Alan Gauld <[EMAIL PROTECTED]
> wrote:
"Asrarahmed Kadri" <
[EMAIL PROTECTED]> wrote> Why is it necessary to explicity use self argument in the class> functionsBecause Guido made it that way. :-) But he did it fo
Thanks a lot for explanation.
Regards,
Asrarahmed
On 10/25/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
"Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote
> Why is it necessary to explicity use self argument in the class> functionsBecause Guido made it that way. :-)But he d
Folks...
Please dont take it in a wrong sense. But I have a point to make regarding OOP and the way it is implemented in Python.
Why is it necessary to explicity use self argument in the class functions ?? I feel the language/interpreter should figure out which object has called the functi
I got it, both are same, numpy is the latest.
Numeric being the oldest, numarray in the middle and the latest is numpy.
Got it ..
Thanks Kent..
On 10/24/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:>> Folks,>> Is numpy different from Numeric; or are bot
Folks,
Is numpy different from Numeric; or are both one and the same >??
Kindly explain the difference ..
Regards,
Asrarahmed-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
allation instructions.
In fact the error message you posted earlier about importing Matplotlib includes detailed information about why you couldn't import matplotlib: You didn't have numeric installed.-A bit of googling goes a long way.
On 10/23/06, Asrarahmed Kadri <
[EMAIL PROTECTED]&
Folks,
I have written a program which calculates teh frequency of each word that appears in a file. I would like to have your feedback.
This program only handles .txt files. I want it to handle word documents also. How to accomplish this ..???
Thanks.
Regards.
Asrarahmed
Code is as under:
f googling goes a long way.
On 10/23/06, Asrarahmed Kadri <
[EMAIL PROTECTED]> wrote:
Is it possible to use these tools on WIndows machine
-- To HIM you shall return. ___Tutor maillist -
Tutor@python.orghttp://mail.python.org/mail
Is it possible to use these tools on WIndows machine
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
plotlib\nxutils.py", line 17, in ?
from matplotlib._ns_nxutils import *ImportError: numpy.core.multiarray failed to import
Any idea how to get aroudn with this..
On 10/23/06, Kent Johnson <[
ython version 2.3 required, which was not found in the registry".
Any idea about resolving this issue!!!
Thanks.
REgards,
Asrarahmed Kadri
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailma
Hi folks...
Thanks a lot, Kent for this great resource.
Remain blessed.
Regards,
Asrarahmed Kadri
On 10/23/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
I thought this notice from the python-announce list might be of interesthere.KentSubject:
ANN: Resources for Python Newbies - a 30
Folks,
Has anyone tried matplotlib ..//???
If yes, then is it easy to use...
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Can somebody explain getopt function using a simple example..
Thanks..
Regards,
Asrarahmed Kadri-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Yeah, I am looling for bar graphs
On 10/21/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:>> Folks,>> Continuing my journey into "Tkinter world"...
>> May I ask someone to tell what PIL is and how can it be helpful in> drawing
Folks,
Continuing my journey into "Tkinter world"...
May I ask someone to tell what PIL is and how can it be helpful in drawing 2-dimensional graphs...
Thanks..
Regards,
Asrarahmed-- To HIM you shall return.
___
Tutor maillist - Tutor@pytho
Folks,
Sorry for asking you such a trivial question.!!! But i want to size up all the buttons with the same size as the largest one in the interface.. And thats why I am asking this question..
Regards,
Asrarahmed
-- To HIM you shall return.
___
T
I came across Thinking in Tkinter a few days back., and I found it interesting but then I didnt get the print out ( dont know why)...
Thanks for that.
Regards,
Asrarahmed
PS: To Bob:: To HIM you shall return--->> It means that one day every person has to die and return to the Almighty t
Folks,
I have the Tkinter book by Grayson (Python and Tkinter Programming).. But I must say, its quite boring..
Do you have any suggestions for a nice book or web resource..??
Thanks,
REgards,
Asrarahmed-- To HIM you shall return.
___
Tutor m
Danny This is a very clean way to get the last line.
Thanks.
Regards,
Asrarahmed
On 10/19/06, Danny Yoo <[EMAIL PROTECTED]> wrote:
> first count the number of lines in the file by using a loop. Use a> second loop and when teh counter reaches the num_of_lines values: take
> the line.>> Is th
I tried to use getchar()... But I dont know which module it belongs (this I came to know when I encountered an error)..!!
Is there a good documentation by which we can search both ways... Look at modules as well as search for a particular function and locate which module it belongs to...
Thanks
My algorithm is like this:
first count the number of lines in the file by using a loop.
Use a second loop and when teh counter reaches the num_of_lines values: take the line.
Is there any other way to do it??
On 10/19/06, Danny Yoo <[EMAIL PROTECTED]> wrote:
On Thu, 19 Oct 2006, Asra
Hi Folks,
I want to extract the last line of the text file. Any idea ???
Thanks,
Regards,
Asrarahmed-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I am so sorry.. if anyone felt offended..
I am a bit nervous about teh whole thing.. I am learning the language as well as i have a deadline to complete my project which is on Tkinter..
Dont mind.. I acknowledge the help from all the people out here..
Thanks.
God Bless.
Regards,
Asrar
O
e()
The problem is in the chk() function.. It is not reading the file The file is a txt file with colon (:) as the delimiter between username and password.
I cannot understand why its not reading???
Please help...
On 10/17/06, Luke Paireepinart <[EMAIL PROTECTED]
> wrote:
As
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
I agree.
Regards,
Asrar
On 10/17/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:> My solution : (i have tested it)>>> list1 = [10,15,18,20,25,30,40]
>> for i in range(len(list1)-1):> print list1[i],list1[i+1]> list1[i+1] += 1Note that
My solution : (i have tested it)
list1 = [10,15,18,20,25,30,40]
for i in range(len(list1)-1): print list1[i],list1[i+1] list1[i+1] += 1
Note:
# print the consecutive elements; for the first pass of the loop the elements are unchanged, for the remaining we add one.
On 10/16/06, kumar
Is it possible to make the utility like in vi, where the user keeps on entering the data and when he hits ':wq', the work is saved and the application exists.
I guess the use of standard input file would be applicable???
Thanks.
Regrds,
Asrar
On 10/14/06, Alan Gauld <[EMAIL PROTECTED]> wrote
Folks,
I am trying to build a simple text editor which has a couple of options of editing, displaying and saving the file.
Now what I want to do is to allow teh user to keep entering the text unless he pressed ':q'.
How can I add this functionality??
Thanks.
REgards,
Asrar
-- To HIM you sha
Hi,
Here is a code that reports whether the string is a palindrome or not. I have posted it to help people new to programming ( i am also a newbie) to understand the logic and comment on it.
Share and expand your knowledge as well as understanding...
Happy scripting
Regards,
Asrar
Cod
Folks,
I dont like to swamp your mailboxes with my trivial questions. But please tell me why this isnt working??
str = str + '\n'
fd.write(str) # fd is teh file handle
the traceback is as under:
Traceback (most recent call last): File "scrap.py", line 39, in ? fd.write(str + '\n')IOE
1 - 100 of 128 matches
Mail list logo