DEV Community

Durga Pokharel
Durga Pokharel

Posted on

Day 51 Of 100DaysOfCode: Sum Of Two Numbers

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
300
Enter fullscreen mode Exit fullscreen mode

Day 51 Of #100DaysOfCode and #Python
* https://t.co/UxGBUoj3RwAlgorithmic Toolbox
* Sum Of Two Digit#WomenWhoCode #DEVCommunity #CodeNewbie #100DaysOfCode #beginner pic.twitter.com/iPRFVc3Efo

— Durga Pokharel (@mathdurga) February 14, 2021

Discussion (0)