Category : python

I have the following integral (I don’t know why the screenshot went so low so you need to scroll a bit). I tried the following code: from scipy import pi, sqrt from scipy.integrate import dblquad func = lambda x,y: ((1-sqrt(x**2+y**2))/(sqrt(x**2+y**2)))*(x**2) x1,x2 = -1, 1 y1,y2 = lambda x: -sqrt(1-x**2), lambda x: sqrt(1-x**2) print dblquad(func, x1, ..

Read more

I have tryed lots of different ways to do this, like this code: import smtplib smtpServer=’smtp.yourdomain.com’ fromAddr=’[email protected]’ toAddr=’[email protected]’ text= "This is a test of sending email from within Python." server = smtplib.SMTP(smtpServer) server.set_debuglevel(1) server.sendmail(fromAddr, toAddr, text) server.quit() but nothing works for me. please help. Source: Python..

Read more

I am trying to open each company from StackOverflow companies and get specific informations(such as the whole description).Is there an easy way to do that using Beautiful Soup?For now I am getting the links of the companies of the first page. import requests from bs4 import BeautifulSoup r = requests.get(‘https://stackoverflow.com/jobs/companies’) src = r.content soup = ..

Read more