[Tutor] for loop for long numbers
dexternet89 at mail.ru
Tue Aug 4 07:03:54 CEST 2015
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):
of course i can make rule to prevent from huge numbers but I want to make no limits.
>Понедельник, 3 августа 2015, 15:00 -07:00 от Danny Yoo <dyoo at hashcollision.org>:
>> 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,9000000000):
>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 do as little work as necessary to get the job done. A
>computer is not often called to be a space heater.
More information about the Tutor