Convert User Input String Python Functions W3schools