From 80f4b8f185d54fa5b9e2fe71b64567a9e4d8905a Mon Sep 17 00:00:00 2001 From: Aditya Vyas Date: Sat, 31 Oct 2020 08:13:23 +0530 Subject: [PATCH] Update exercise24.py --- Beginner/exercise24.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Beginner/exercise24.py b/Beginner/exercise24.py index f16560a..37d31a5 100644 --- a/Beginner/exercise24.py +++ b/Beginner/exercise24.py @@ -1,9 +1,13 @@ +## To get documantation of any keyword! print(abs.__doc__) print(int.__doc__) print(input.__doc__) def sq(x): '''This returns the square of number''' + x= float(x) + ## Press shift+tab in Safari & you'll get the above line in the documentation. return x*x print(sq.__doc__) +##another method for this!