Let’s keep these short and to the point.
Not everyone has a first and last name.
Perhaps Just store Name in a database.
https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
Internet connections can cut out at any moment while using a web form.
Show a proper error and test for this using your web browser development tools.
The
fetch
api won't have an error response / status code in these cases
<select> inputs in HTML without a value
attribute in the option tags will submit other-language values if client-side translation is activer
use
<option value="hello">hello</option>
instead of just<option>hello</option>
Also consider adding
translate="no"
as an attribute on the<select>
Python3’s built in round
function will round .5’s towards the even choice
round(0.5) == 0, round(1.5) == 2, round(2.5) == 2
# Hack for intuitive rounding (0.5 -> 1) def rounder(number, ndigits=None): return round(number + 1e-8, ndigits)