Day 081 - Project 81 : I'm not a robot page

If you have any questions, comments or issues with this project please post them here!

Can anyone please debug the error in this repl? https://replit.com/@NitinMurali1/81-days-error?v=1

This is part of the Day 81 challenge in the “100 days of code” tutorial

your code:

 <p>Are you made of metal? <input type="radio" name="yes_no" value="yes"> Yes </p> <p><input type="radio" name="yes_no" value="no"> No </p>

Problem:

name="yes_no" 
name="yes_no"

my soulution (And david’s)

name="metal"
name="metal"

and note that i don’t know flask so this might not be correct

one more thing. Saying

name="yes_no"

works but you are checking the varible at line 8 of python

if form["metal"] == "Yes":

insted of

if form["yes_no"] == "Yes":

the if statement is checking that in the HTML code the varible “metel”
has assigned values of yes. because you used the name “yes_no”,
the if statement is checking for a non-existent varible

Hope this helps! BananaPi