HackerRank- Python Floor, Ceil and Rint

given a 1-D array, A . Your task is to print the floor, ceil and rint of all the elements of A.

  1. import numpy
  2. numpy.set_printoptions(sign=' ')
  3. a = numpy.array(input().split(),float)
  4. print(numpy.floor(a))
  5. print(numpy.ceil(a))
  6. print(numpy.rint(a))
Please click on the like button if it worked

Solution not working or have any suggestions? Please send an email to [email protected]

donate a cup of tea :)

Join Our Facebook Group

Share this solution


Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube