+ 1

Write a code by using def so that it could be explained clearly ?

no description

21st Aug 2018, 5:30 PM
Himanshu
Himanshu - avatar
2 Respostas
+ 4
def greet(name): print("Hello, " + name + "!") user_name = input("Enter your name: ") greet(user_name)
21st Aug 2018, 5:40 PM
Eduardo Petry
Eduardo Petry - avatar
0
def add(a, b): return a+b print(add(5, 1)) #result is 6
21st Aug 2018, 8:51 PM
Sousou
Sousou - avatar