PennyLane
Next

To attempt this challenge, please switch to a larger screen size.

Beginner
Getting Started

Begin Here

Challenge Statement


The "Challenge statement" section contains the context and general objective of a coding challenge.


This challenge is super easy! Solve it to become familiar with PennyLane's coding challenge platform.

Given to integer numbers a and b, your objective is to find their sum a+b.

Challenge code


The "Challenge code" section introduces the functions within the code template shown that you must complete. It may also explain some helper functions given to you.


You must complete the add function which, given the arguments a (int) and b (int), returns their sum.

Input


The "Input" section states the argument(s) that will be input into your code to make sure that it is working properly.


As an input to this challenge, you are given a (int) and b (int), which are the integers you must add together.

Output


The "Output" section states the output of your full script. This final output may be a result of post-processing the outputs of your completed functions.


The code will output an int corresponding to the sum of a and b.

Test cases


The "Test cases" section lists some of the arguments with which you code will be verified. There are additional test cases than those listed here. This section may also list an absolute or relative tolerance for your results.


The following public test cases are available to you. Note that there are additional hidden test cases that we use to verify that your code is valid in full generality.

test_input: 1 1 expected_output: 2 test_input: 2 3 expected_output: 5

If your solution matches the correct one, the output will be "Success!" Otherwise, you will receive an "Incorrect" prompt.

Loading...