title: python join,map and lambda methods
body: <p>I am quite new to python. Can someone explain this line </p>
  
  <pre><code>exec("print(' '.join(map(lambda x: s[x::{0}], range({0}))))".format(ceil(sqrt(len(s)))))
  </code></pre>
  
  <p>What does <code>s[x::{0}]</code> and <code>range({0}))</code> mean ?</p>
  
  <p>in below piece of code in detail?</p>
  
  <p>This code is a solution for below hackerrank question :
  <a href="https://www.hackerrank.com/challenges/encryption/problem" rel="nofollow noreferrer">https://www.hackerrank.com/challenges/encryption/problem</a></p>
  
  <pre><code>#!/bin/python3
  
  import sys
  from math import ceil, floor, sqrt
  
  
  def encryption(s):
      exec("print(' '.join(map(lambda x: s[x::{0}], range({0}))))".format(ceil(sqrt(len(s)))))
  
  if __name__ == "__main__":
      s = input().strip()
      result = encryption(s)
  </code></pre>