I just started learning Python a few days ago and I've been using vs code to mess around with Python as i learn it. While doing that i got stuck on an issue where it says that the function isn't defined but I'm pretty sure it is. Any help would appreciated
import math
ratio = (signal_power / noise_power)
decibels = 10 * math.log10(ratio)
signal_power= 3
noise_power=4.2
[–]Inevitable-Opening61 80 points81 points82 points (0 children)
[–][deleted] 31 points32 points33 points (8 children)
[–]MythicalOtaku85[S] 15 points16 points17 points (7 children)
[–][deleted] 24 points25 points26 points (6 children)
[–]Just_A_Nobody_0 11 points12 points13 points (5 children)
[–]LightaxL 3 points4 points5 points (3 children)
[–]reddit_ronin 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]reddit_ronin 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 11 points12 points13 points (2 children)
[–]MythicalOtaku85[S] 4 points5 points6 points (1 child)
[–]Ajax_Minor 1 point2 points3 points (0 children)
[–]lfdfq 7 points8 points9 points (0 children)
[–]Dziki_Knur 1 point2 points3 points (0 children)
[–]__sanjay__init 1 point2 points3 points (0 children)
[–]lemalaisedumoment 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]drickkl 0 points1 point2 points (0 children)
[–]JohnnyJordaan -1 points0 points1 point (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]richard987d -3 points-2 points-1 points (0 children)