Can't complete the screen

Hello) I try to complete the screen even with code from the answer, but I get an error (see the attached pic). So, I can’t complete this mission in total. What is wrong?

Screen Link: https://app.dataquest.io/m/245/intro-to-postgres/5/sql-transactions

Thanks for any help.

The checker compares the stderr output of the script.

Therefore, you need to match line by line in the script.

In your script, you have an extra line on line 3.

Erase everything you have. And, only include four lines of code below.

import psycopg2
conn = psycopg2.connect("dbname=dq user=dq")
cur = conn.cursor()
cur.execute("SELECT * FROM users;")

It worked! Thank you so much!)

1 Like