Re: [Tutor] for loop for long numbers

2015-08-04 Thread Dima Kulik
I want to ask user how many time he would like to make an iteration of crypt function. Also if he/she wants to do it numerous times, my code should work. So i use such code: x = input("How many time you want to encrypt?") for i in xrange(0,x+1):  make_code of course i can make rule to prevent f

Re: [Tutor] for loop for long numbers

2015-08-04 Thread Peter Otten
Peter Otten wrote: > But note that if some_code() takes 1 microsecond the loop will run for > about Sorry, that should be millisecond (1/1000 s). 90/60/60/24/1000 > 104.17 > > 104 days. ___ Tutor maillist - Tutor@python.

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(

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] 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

[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