My issue
Update the ‘_’ in the code below to get the desired result
print(7,“3+4”,“2+1”, 3)
My code
# Update the '_' in the code below to get the desired result
print(7,"3+4","2+1", 3)
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
print(7, “and”, 3)
the code will be like this. As it says to print the result of 3+4 and 2+1 and insert a text “and” in between the result.so You just have to update “and” in the _ given there to get the desired result.
The output of the code you have written will be 7 ,3+4,2+1, 3