Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Beginner/exercise24.py
Original file line number Diff line number Diff line change
@@ -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!