-
-
Save Pierian-Data/84ea09a5ae8d82565d5d04fba9183de9 to your computer and use it in GitHub Desktop.
def myfunc(name): | |
#return 'Hello {}'.format(name) | |
print('Hello {}'.format(name)) |
def myfunc(name):
print('Hello {}'.format(name))
return 'Hello {}'.format(name)
myfunc('jose')
def newfunc(name):
print('Hello {}'.format(name))
newfunc("pm")
def myfunc(name):
print('Hello {}'.format(name))
def mufunc(name):
print(f'helloe {name}')
creating user define function with argument in parenthesis
def function_name(name):
print(f'Hello {name}')
calling function_name in new cell
function_name('Sudheer')
def myfunc(name):
#return 'Hello {}'.format(name)
print('Hello {}'.format(name))
myfunc("Hoang")
def myfunc(name):
return 'Hello{}'.format(name)
print('Hello {}'.format(name)
myfunc('Jairo')
def myfunc(name):
print(f'hello {name}')
myfunc('Jairo')
def myfunc(name='Rogelio'):
print('Hello {}'.format(name))
def nameee(name):
print("hello{}".formet(name))
nameee(Ram ji)
def myfunc(name='Name'):
return ('Hello {}'.format(name))
print (myfunc('Jose'))
def name_file(name):
print("my name is {}".format(name))
name_file("John")
def myfunc(name):
print('My name is {}'.format(name))
def myfunc(name):
print('My name is {}'. format(name))
def myfuction(name):
print("My name is {}".format()name)
n=input("Enter the String:")
myfunction(n)
def hello_name(name):
print(f'hello {name}')
yourname = input('Your name is: )
hello_name(yourname)
def hello_name(name):
print(f'Hello {name}')
hello_name('Phat')
def hello_name(name):
print('Hello {}'.format(name))
hello_name('Phat')
def myfunc(name = 'Default'):
print("Hello", name)
myfunc("Soumyajit")
def name_function():
print("Hello{}".format())
name_function('Haneen')
def myfunc(name):
print('Hello {}'.format(name))
def myfunc(name):
print('Hello{}'.format(name))