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

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More