# CS150 debugging example import math def snr(signal, noise): """ Compute signal to noise ratio in decibels (but has a bug...) Args: signal: Signal power noise: Noise power Returns: SNR as float """ ratio = signal // noise decibels = 10 * math.log10(ratio) return decibels snr(9, 10)