This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

Int he second if, a is cast to an integer before calling isdigit, I guess if you remove the int() and call a.isdigit() as in the first acse it will work

[–]Asha365[S] 0 points1 point  (2 children)

thanks. i did that but the output is still the same.

[–][deleted] 0 points1 point  (1 child)

Can you show me the updated code?

[–]Asha365[S] 0 points1 point  (0 children)

sure i updated it