title: How can I define a class in Python?
body: <p>Quite simple, I'm learning Python, and I can't find a reference that tells me how to write the following:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class Team {
       private String name;
       private String logo;
       private int members;
  
       public Team(){}
  
       // Getters/setters
  }
  </code></pre>
  
  <p>Later:</p>
  
  <pre><code>Team team = new Team();
  team.setName("Oscar");
  team.setLogo("http://....");
  team.setMembers(10);
  </code></pre>
  
  <p>That is a class Team with the properties: name/logo/members</p>
  
  <p><strong>Edit</strong></p>
  
  <p>After a few attempts I got this:</p>
  
  <pre><code>class Team:
      pass
  </code></pre>
  
  <p>Later</p>
  
  <pre><code>team = Team()
  team.name = "Oscar"
  team.logo = "http://..."
  team.members = 10
  </code></pre>
  
  <p>Is this the Python way? It feels odd (coming from a strongly typed language of course).</p>