NameError | Python 3.10.12: /usr/bin/python3 Sat Oct 5 15:02:26 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/cgi-bin/form.py in <module> |
12 print("</head>") |
13 print("<body>") |
=> 14 print("<h2>Hello %s %s</h2>" % (first_name, last_name)) |
15 print("</body>") |
16 print("</html>") |
builtin print = <built-in function print>, first_name undefined, last_name undefined |
NameError: name 'first_name' is not defined
args =
("name 'first_name' is not defined",)
name =
'first_name'
with_traceback =
<built-in method with_traceback of NameError object>