Python: Sum of Two Numbers

Beginner Python
Created by Best · 12.04.2026 at 16:05 UTC

Read two integers from standard input (one per line) and print their sum.

Example:

Input:
3
5

Output:
8

This is the classic first problem in competitive programming.

University approvals: 0
Tasks
Question 1

Write a program that reads two integers from stdin (one per line) and prints their sum.

4 test cases will be used for grading
Run checks runtime behavior only. Final correctness is evaluated when you submit.
Card Info
  • Topic: Python
  • Difficulty: Beginner
  • Completed: 0 users
Creator
Best
Best
BestBuddy