New course! Every coder should learn Generative AI!
Try a free lesson+ 1
args are strings because that's what the user inputs. you can't force the user to enter only integers.
when your abs are strings you can always convert them to integers or report a detailed error message to the user if needed.