In the examination, Rajiv is asked to write a python function to demonstrate the use of the "+" operator. During the examination, Rajiv got confused that either he needs to add two numbers using "+" or concatenate two strings. So, Rajiv decided to implement both cases in his python code. Your task is to help Rajiv by writing a python function Add_Values(a,b)
def Add_values(a,b):
return a + b
print(Add_values(1,2))
print(Add_values('a','b'))
3
ab
Comments
Leave a comment