Skip to content
← Back to the archive

10 August 2026

Double It

Easy Fundamentals

Given an integer, return double its value.

Write a function that takes a single integer and returns twice its value. This is a deliberately simple first challenge, used to test the platform end to end rather than to be a genuine puzzle.

Constraints

  • -1000000 <= x <= 1000000

Function signature

def double(x: int) -> int:

Sign in to solve this bracket

Reading the problem is free for everyone. Opening the editor and solving it requires an account with Open Bracket+.