logo CodeStepByStep logo

second_to_last_digit

Language/Type: Python basics syntax variables

Suppose you have an variable named number that stores an integer. What Python expression produces the second-to-last digit of the number (the 10s place)? What expression produces the third-to-last digit of the number (the 100s place)?

second-to-last digit
(order shuffled)
third-to-last digit
(order shuffled)

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.