+ 1
Write a code by using def so that it could be explained clearly ?
no description
2 Réponses
+ 4
def greet(name):
print("Hello, " + name + "!")
user_name = input("Enter your name: ")
greet(user_name)
0
def add(a, b):
return a+b
print(add(5, 1))
#result is 6