1 1 vote Python Interview Questions python python-basics python-interview + – 6% Accept Rate Accepted 1 answers out of 17 questions askpython 1.4k points 18 19 25 answer comment Share 0 reply Please log in or register to add a comment.
0 0 votes A function is a block of code which is executed only when it is called. To define a Python function, the def keyword is used. Example: def hello(): print("Hello World!") hello() # calling the function # Output: "Hello World!" askpython answered Jul 11, 2019 askpython 1.4k points 18 19 25 comment Share 0 reply Please log in or register to add a comment.