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!