Count Objects

Report a typo

We have a the House model with the following fields: street, house_number, apartments:

class House(models.Model):
    apartments = models.IntegerField()
    house_number = models.IntegerField()
    street = models.CharField(max_length=64)

Count all houses on street by Wall st.. The result should be an int value.

Write a program in Python 3
wall_street_houses_number = ...
___

Create a free account to access the full topic