Answer:
if statements require == when comparing two values, and a colon (:) at the end. Also you gotta right && instead of and, then you gotta indent after like:
foo = 1
bar = 2
if foo == bar:
foo += 1
Explanation:
Answer: Traditional media allows businesses to target a broad target audience through billboards, print advertising, television commercials, and more. In comparison, new media allows companies to target a narrow target audience through social media, paid online ads, and search results.
Explanation:
Answer:
True
Explanation:
Windows writes temporary files to the hard disk which it uses as a cache during normal operation. These files are usually deleted automatically after the windows operation has been completed. If there is no free disk space available, some windows operations will fail to start and others will stop working
I am pretty sure it is the fourth one
def dx(fn, x, delta=0.001):
return (fn(x+delta) - fn(x))/delta
def solve(fn, value, x=0.5, maxtries=1000, maxerr=0.00001):
for tries in xrange(maxtries):
err = fn(x) - value
if abs(err) < maxerr:
return x
slope = dx(fn, x)
x -= err/slope
raise ValueError('no solution found')