'전체 글'에 해당되는 글 26건

  1. python challenge level0 2009.09.16
  2. Contact 2008.07.06

python challenge level0

from Closed 2009. 9. 16. 17:05
1.
 
pow(2, 38)
결과 : 274877906944

2.
 
2 ** 38
결과 : 274877906944

3.
 
#!/usr/bin/python
a = 2
i = 1
result = 2
while(i < 38):
        result = result * a
        i = i + 1
print str(result)+ " " + "is answer. \n"
결과 : 274877906944

아, 파이썬을 파이썬 답게 쓰고 싶다.
,

Contact

from About 2008. 7. 6. 03:36
You can email me, or I'm frequently active on Twitter when I share something for the public.


,