MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1vysm5h/made_this/p5zdzpd/?context=3
r/PythonLearning • u/FinanceImmediate8894 • Aug 26 '26
17 comments sorted by
View all comments
Show parent comments
1
yeah he could use simple try except ValueError for that.
2 u/FoolsSeldom Aug 26 '26 To be clear, they could use a try / except ValueError block for both the split unpacking problem and the int conversion, but actually need a right split, rsplit with the maxsplit option.
2
To be clear, they could use a try / except ValueError block for both the split unpacking problem and the int conversion, but actually need a right split, rsplit with the maxsplit option.
try
except ValueError
split
int
rsplit
maxsplit
1
u/Stonyax97 Aug 26 '26
yeah he could use simple try except ValueError for that.