Tuesday, November 4, 2014

Python: Python Challenge - Level 0 : Proposed Solution

First problem on "pythonchallenge.com" is an image which displays the number 2^38. To solve this, I tried the following Solution:

 uRLStringConstant = "http://www.pythonchallenge.com/pc/def/"  
 variableComponent = 2**38  
 print '{}{}.html'.format(uRLStringConstant,variableComponent)  

Output was:
 :::::OUTPUT::::::  
 http://www.pythonchallenge.com/pc/def/274877906944.html  
 Redirected To  
 http://www.pythonchallenge.com/pc/def/map.html  

More suggestion are always welcome. In case if you wish me to write about any specific scenario, please feel free to write to me or else you can Comment below.

No comments:

Post a Comment