DEV Community


Day 51 Of 100DaysOfCode: Sum Of Two Numbers

Durga Pokharel
A mathematics student learning to code.
・1 min read

Today is my 51th day of #100Daysofcode and #python learning. Today I started to studied Algorithmic Toolbox. First course of Data Structures and Algorithms Specialization. I want to learn algorithms before diving into projects so I am doing this course.

Python code

Here is python code for today,

def sum_of_two_digits(first_digit, second_digit):
    return first_digit + second_digit

a, b = map(int, input().split())
print(sum_of_two_digits(a, b))
Enter fullscreen mode Exit fullscreen mode

Output of above code is,

100 200
Enter fullscreen mode Exit fullscreen mode

Discussion (0)