Another pandemic...

Report a typo

The Health.inc clinic has a database with info about customers. Suddenly, doctors from this clinic discovered that their equipment is not enough to cure one new particular disease. To understand how much of the new equipment is required, they want to count the number of patients with this disease.

You need to write a program that counts records from a database with disease(one of the table's columns) called A1A2B10 and saves this number in a particular variable (num). Consider that the connection object is already created and is the conn variable. The table's name is patients.

Write a program in Python 3
num = #answer must be saved in this variable

conn.commit()
conn.close()
___

Create a free account to access the full topic