Answers for "def use in python"

2

Python Functions

def my_function():
  print("Hello from a function")

my_function()
Posted by: Guest on February-01-2021
0

function used in python

def hello():
  name = str(input("Enter your name: "))
  if name:
    print ("Hello " + str(name))
  else:
    print("Hello World") 
  return 
  
hello()
Posted by: Guest on February-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language