+ 1

even = [2*i for i in range(10**100)]

this code not give any memory limit exceding message on another platform of python or if we increase the value at place of 100 then that editer get hanug(not responding)

19th Mar 2017, 8:40 PM
Pramod Nagar
Pramod Nagar - avatar
1 Answer
+ 2
10**100 (a googol) is far larger than the total number of elementary particles in the universe. So imho it's not a handleable number for everyday purposes. That could explain the inability of compilers to cope with it.
22nd Mar 2017, 5:37 PM
Álvaro