Answers for "define a function in python without arguments"

2

specify return type python function

def greeting(name: str) -> str:
  return 'Hello, {}'.format(name)
Posted by: Guest on April-13-2020
0

define a function in python without arguments

def hello_function():
...     print 'Hello World, it\'s me.  Function.'
...

>>> hello_function()
Hello World, it's me.  Function.
Posted by: Guest on April-24-2021

Code answers related to "define a function in python without arguments"

Python Answers by Framework

Browse Popular Code Answers by Language