SyntaxFix
Write A Post
Hire A Developer
Questions
you can also covert int to str first and assign index to it then again convert it to int like this:
int(str(x)[n]) //where x is an integer value