From the course: Data Cleaning in Python Essential Training
Unlock this course with a free trial
Join today to access over 25,400 courses taught by industry experts.
Solution: UI design - Python Tutorial
From the course: Data Cleaning in Python Essential Training
Solution: UI design
(upbeat music) - [Instructor] Here's my solution. For the name field, there's nothing much we can do. In the country name, I'm going to use a drop down menu from the list of all the countries. The card number is split with four sections so it's easier for the user to see that they're missing a digit, and it's going to stay red until they fill the whole digits. The expiration day is, again, a dropdown for the month and the year, or we can do one of these fancy date selector menus. The amount I put the currency at the beginning, and we're going to limit the input box only to numbers. And the button is going to be disabled until the form is valid.