Re: [Tutor] for loop for long numbers

2015-08-03 Thread Peter Otten
Dima Kulik wrote: > I want to make a for loop with a huge numbers. > for example: > > for i in range (0,90): some_code() > but range and xrange cant operate with such big numbers. > Can some on help me? If you are just beginning with Python and do not require any libraries that are

Re: [Tutor] for loop for long numbers

2015-08-03 Thread eryksun
On Mon, Aug 3, 2015 at 8:50 PM, Steven D'Aprano wrote: > If you have a 64-bit operating system, you can use a 64-bit version of > Python, and the limit will be something like 2**63 - 1 or so. I can't > test this myself, as I have a 32-bit system like you. A notable exception to the above claim is

Re: [Tutor] for loop for long numbers

2015-08-03 Thread Steven D'Aprano
On Mon, Aug 03, 2015 at 09:15:45PM +0300, Dima Kulik wrote: > Hi to all. > Can you help me plz. > I want to make a for loop with a huge numbers. > for example: > > for i in range (0,90): >  make_some_code > > but range and xrange cant operate with such big numbers. In Python 2, range(

[Tutor] Python Certifications

2015-08-03 Thread acolta
Hi, I am new in python, so just curios if there are any good and appreciated python certification programs/courses ? Cheers, Andrei ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/l

Re: [Tutor] for loop for long numbers

2015-08-03 Thread Danny Yoo
> Hi to all. > Can you help me plz. > I want to make a for loop with a huge numbers. > for example: > > for i in range (0,90): > make_some_code Can you say more why you are trying to do this, by the way? Without context, this request seems strange, as we often want to make our programs

Re: [Tutor] for loop for long numbers

2015-08-03 Thread Martin A. Brown
Greetings Dima, Can you help me plz. I want to make a for loop with a huge numbers. for example: for i in range (0,90):  make_some_code but range and xrange cant operate with such big numbers. Can some on help me? Ah, range and xrange. It would help us to know which Python version

Re: [Tutor] How to show the listbox from sqlite and make it searchable?

2015-08-03 Thread Alan Gauld
On 03/08/15 13:22, Ali Moradi wrote: hi, this is my code ( http://paste.pound-python.org/show/3DZoev97e1UkWFcATKYF/) OK I had a look at the code this time. Several points: You never set your listbox in the GUI - there is no call to grid(). Your button has no command attached to it so it does

Re: [Tutor] for loop for long numbers

2015-08-03 Thread Mark Lawrence
On 03/08/2015 19:15, Dima Kulik wrote: Hi to all. Can you help me plz. I want to make a for loop with a huge numbers. for example: for i in range (0,90): make_some_code but range and xrange cant operate with such big numbers. Can some on help me? Thanks. You cannot do anything ab

Re: [Tutor] for loop for long numbers

2015-08-03 Thread Alan Gauld
On 03/08/15 19:15, Dima Kulik wrote: I want to make a for loop with a huge numbers. for example: for i in range (0,90): make_some_code but range and xrange cant operate with such big numbers. What makes you think so? Did you try? What error did you get? And what version of python w

Re: [Tutor] How to show the listbox from sqlite and make it searchable?

2015-08-03 Thread Alan Gauld
On 03/08/15 13:22, Ali Moradi wrote: how can i show the two fields name "esperanto" and "english" in a listbox positioned under the entry widget? i want the two fields to be beside eachother like (abak/o abacus) You need to do two things: 1) set the font of the listbox to be monospaced so

Re: [Tutor] How to show the listbox from sqlite and make it searchable?

2015-08-03 Thread Mark Lawrence
On 03/08/2015 13:22, Ali Moradi wrote: hi, this is my code ( http://paste.pound-python.org/show/3DZoev97e1UkWFcATKYF/) Please post your code inline so we can see it and it is retained for posterity. how can i show the two fields name "esperanto" and "english" in a listbox positioned under

Re: [Tutor] find pickle and retrieve saved data

2015-08-03 Thread Quiles, Stephanie
I'm trying to tell it to print everything under that particular name. I would have to def info, correct? But set it equal to what to make it work? Stephanie Quiles Sent from my iPhone > On Aug 3, 2015, at 3:12 AM, Alan Gauld wrote: > >> On 03/08/15 04:04, Quiles, Stephanie wrote: >> >> def m

[Tutor] for loop for long numbers

2015-08-03 Thread Dima Kulik
Hi to all. Can you help me plz. I want to make a for loop with a huge numbers. for example: for i in range (0,90):  make_some_code but range and xrange cant operate with such big numbers. Can some on help me? Thanks. -- Dima Kulik ___ Tutor

[Tutor] How to show the listbox from sqlite and make it searchable?

2015-08-03 Thread Ali Moradi
hi, this is my code ( http://paste.pound-python.org/show/3DZoev97e1UkWFcATKYF/) how can i show the two fields name "esperanto" and "english" in a listbox positioned under the entry widget? i want the two fields to be beside eachother like (abak/o abacus) and i want to make them searchable via

Re: [Tutor] question / decision tree

2015-08-03 Thread memilanuk
On 08/03/2015 02:38 AM, matej taferner wrote: Or maybe should I go with the tkinter? As a final product of this decision tree "app" I need a clickable buttons ready to be embedded into the website which will guide customer(s) to desired answer(s). The two aren't exactly compatible. Tkinter

Re: [Tutor] question / decision tree

2015-08-03 Thread matej taferner
Or maybe should I go with the tkinter? 2015-08-03 10:36 GMT+01:00 matej taferner : > thanks for the reply. I'll definitely check the book. > > The back end solution of the problem is more or less clear to me. What I > find difficult is the grasp the idea of o called front end dev. or better > to

Re: [Tutor] question / decision tree

2015-08-03 Thread matej taferner
thanks for the reply. I'll definitely check the book. The back end solution of the problem is more or less clear to me. What I find difficult is the grasp the idea of o called front end dev. or better to say what should I use to make buttons should I dig into django framework or something else?

Re: [Tutor] Windows "feature" I don't understand

2015-08-03 Thread eryksun
On Sun, Aug 2, 2015 at 9:14 PM, Clayton Kirkwood wrote: > get into the innards much. I ran into a problem in my program, which we have > been discussing, which is windows-caused. I originally set my directory in > my code to /users/Clayton/Pictures by memory that that was the name of the > direct

Re: [Tutor] scratching my head

2015-08-03 Thread Laura Creighton
In a message of Mon, 03 Aug 2015 18:22:32 +1000, Cameron Simpson writes: >That depends. This is the tutor list; we're helping Clayton debug his code as >an aid to learning. While it's good to know about the facilities in the >standard library, pointing him directly at fnmatch (which I'd entirely

Re: [Tutor] question / decision tree

2015-08-03 Thread Laura Creighton
In a message of Mon, 03 Aug 2015 08:58:43 +0100, matej taferner writes: >hi guys, > >I am wondering if there is a python solution for the problem I am currently >dealing with. >I need to build a decision tree based questionnaire which helps users to >find the right answer. > >As a final product of

Re: [Tutor] scratching my head

2015-08-03 Thread Cameron Simpson
On 03Aug2015 08:12, Laura Creighton wrote: I think people are giving you sub-optimal advice. Python has a module in the standard library for doing exactly what you want to do -- match files with certain extensions. See: https://docs.python.org/2/library/fnmatch.html It's unix style file match

[Tutor] question / decision tree

2015-08-03 Thread matej taferner
hi guys, I am wondering if there is a python solution for the problem I am currently dealing with. I need to build a decision tree based questionnaire which helps users to find the right answer. As a final product of this decision tree "app" I need a clickable buttons ready to be embedded into th

Re: [Tutor] infix to postfix eval

2015-08-03 Thread Laura Creighton
Hi Anish. I wanted to let you know something I found out last week. Even when you select plain text email, gmail will mangle any lines of text starting with one or more '>' marks. So when you write: >>> import string >>> string.uppercase 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' >>> string.digits

Re: [Tutor] email validation

2015-08-03 Thread Alan Gauld
On 03/08/15 04:02, Quiles, Stephanie wrote: ok so i made a few corrections based on what you stated and moved the name variable out of the loop. however, now its doing the same thing with alternate email. So you need a while loop for every element you want to validate. while True: # overa

Re: [Tutor] email validation

2015-08-03 Thread Válas Péter
2015-08-03 5:02 GMT+02:00 Quiles, Stephanie < stephanie.quiles...@albright.edu>: > ok so i made a few corrections based on what you stated and moved the name > variable out of the loop. however, now its doing the same thing with > alternate email. if it is entered incorrectly, it goes back to emai

Re: [Tutor] find pickle and retrieve saved data

2015-08-03 Thread Alan Gauld
On 03/08/15 04:04, Quiles, Stephanie wrote: def main(): ... name_search = input("Enter a name in the file for info: ") for name in emails: if name[0] == name_search: print("This is the info: ", info) What is info? Is it supposed to be name? or name[1:]? Its n

Re: [Tutor] email validation

2015-08-03 Thread Quiles, Stephanie
ok so i made a few corrections based on what you stated and moved the name variable out of the loop. however, now its doing the same thing with alternate email. if it is entered incorrectly, it goes back to email 1 and you have to re-enter it. i tried the nested loops but they were not working e