# Introduction In this project, you will learn how to write a function that returns the k-th digit from the right side of an integer. This is a common programming problem that tests your ability to manipulate and extract data from integers. ## ð Preview ```python $ python3 kdigit.py # f(123456789, 3) 7 ``` ## ðŊ Tasks In this project, you will learn: - How to define a function with two parameters - How to convert an integer to a string and access individual characters - How to return the desired digit from the right side of the integer ## ð Achievements After completing this project, you will be able to: - Implement a function that extracts a specific digit from an integer - Understand how to work with integers and strings in Python - Apply your problem-solving skills to a real-world programming problem
Click the virtual machine below to start practicing