All problems
Spectral Efficiency
Problem
Return the spectral efficiency in bits per second per hertz:
SE = capacity_bps / bandwidth_hz
Hint
Spectral efficiency is the capacity normalized by bandwidth.
Test cases
case 1
in: [1000000,100000]
expected: 10
case 2
in: [3000000,1000000]
expected: 3
case 3
in: [0,20000]
expected: 0
case 4
in: [56000,56000]
expected: 1
Starter codePython
def spectral_efficiency(capacity_bps, bandwidth_hz):
# Your code here
pass4 test cases · run your code against them in the editor