79837180

Date: 2025-12-03 17:58:39
Score: 1.5
Natty:
Report link

You say you want parameter input to be simple and intuitive, but you don't show the relevant code. Do you obtain them through an input(), or from a graphical interface? In any case, you could ask the user to enter extra data, which would be the parameter model, something like: “enter ‘A’ if you only enter ‘x’, ‘y,’ and ‘n,’ enter ‘B’ if you enter ‘x,’ 'y,‘ 'n,’ and ‘xxx,’” etc. This way, you can differentiate between arguments that share the same type, since yes, for example, the function receives three int and only two are passed to it, it is unable to determine which parameters they correspond to (1st and 2nd, 1st and 3rd, etc.).

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Marce Puente