Hello, I have one problem with periodic table project.
I don’t have any idea how to pass this test.
I tried else statement in while loop but I got multiple sentence “I could not find that element in the database”. I don’t know how to check this condition only on the last iteration.
I also thought about piping output from while loop to variable and then check it’s empty or no but I don’t know how to do it properly.
Here is my github: GitHub - aknieszka/periodic_table
And link to the project: https://www.freecodecamp.org/learn/relational-database/build-a-periodic-table-database-project/build-a-periodic-table-database
Thank you in advance for your help.