Potential security risk could affect 750,000 Estonian ID cards
news.err.ee1 pointsby m55au0 comments
You have: 1 diesel
You want: Wh/L
1 diesel = 10103.465 Wh/L
Slightly different value than in Wikipedia, but close enough. You have: 40 MW/30% / (10722.2 W*hr/L)
You want: L/hr
40 MW/30% / (10722.2 W*hr/L) = 12435.259 L/hr a = 1
def foo():
x = a
a = 2
foo()
> UnboundLocalError: local variable 'a' referenced before assignment
Basically a name cannot be both global and local inside the same function. Otherwise it would be a total mess.