Light Mode
Dark Mode
Publication's code doesn't show properly
There are mistakes in "from math import pi
 
def simple_areas(a,b=0,c=0):
    return (pi*a*a/4,a*b,((a+b+c)*(b+c-a)*(a+c-b)*(a+b-c))**.5/4)[2-(a,b,c).count(0)]"

My code is 4 lines long, but the window is only 3 lines long. So one has to click the side bar to see the last line. I am not sure how this happened. It's the first time I am seeing this. Please check it out.

URL from: http://www.checkio.org/mission/simple-areas/publications/panaro32/python-3/first/
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
  • feedback
Created: June 14, 2014, 2:25 p.m.
Updated: June 18, 2014, 1:03 p.m.
0
26
User avatar
panaro32