title: Python Web Scraping: Unable to extract text from bs4 element
body: <p>I was trying to extract Name and University Seat number from a webpage but I'm getting the following result-</p>
  
  <pre><code>[&lt;p class="card-title page-title mb-0 mt-0"&gt;Agnello Fernandes A &lt;span class="text-muted"&gt;(1sp15me001)&lt;/span&gt;&lt;/p&gt;]  
  </code></pre>
  
  <p>which is a bs4 element. I need to extract 'Agnello Fernandes A' and 1sp15me001.</p>
  
  <p>Here is my code  </p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  r=requests.get("http://cbcs.fastvturesults.com/student/1sp15me001")
  c=r.content
  soup=BeautifulSoup(c,"html.parser")
  all[0].find_all("p",{"class":"card-title page-title mb-0 mt-0"})
  </code></pre>
  
  <p>How can I convert this to an str element and extract the name?</p>