Advertisement
theanhvo

Untitled

Aug 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def solve(N):
  2. '''Creates a list contains all integer (not string) digits
  3. of ten last digits of `2**N`.
  4. '''
  5. result = [int(x) for x in str(2**N)][-10:]
  6. return result
  7.  
  8.  
  9. def main():
  10. print(solve(1000))
  11.  
  12.  
  13. if __name__ == "__main__":
  14. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement