How to create a command line menu with numbers?

Hi,

I need a command prompt menu with numbers for the user to click on, but for the values to display they have to start with a string character, so I had to add a letter, v in front.

image

def open_grid_spacing_submenu(current_value):

    spacing_items = [
        ("v1000", 1000.0),
        ("v500", 500.0),
        ("v200", 200.0),
        ("v100", 100.0),
        ("v50", 50.0),
        ("v10", 10.0),
        ("v1", 1.0),
        ("v05", 0.5),
        ("v02", 0.2),
        ("v01", 0.1),
    ]

How do I do this properly ?
Thank you!

I believe they need to contain a string character, not necessarily start with it. E.g:
image

yes, indeed! thank you @Gijs ,

Is there any documentation on this? How to make a command prompt menu, sub-menu, specify values, default values, custom input, etc..