Answer to Question #310239 in Python for shud

Question #310239

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)

1
Expert's answer
2022-03-12T12:45:59-0500
def Add_values(a,b):
    return a + b
print(Add_values(1,2))
print(Add_values('a','b'))

3
ab

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS