Loading...

The Molecule Report

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
mid, senior

Problem

You are given a DNA sequence as a string. Return a summary dict containing the count of each nucleotide base, the GC content as a float percentage, the most commonly occurring two-character subsequence, and a boolean indicating whether the sequence contains only valid nucleotide characters.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.