This content originally appeared on DEV Community and was authored by Introschool
You are running a lottery company, and you have distributed 100 tickets. Now, as the head of the company, you know that the winning ticket number has 7 as the last digit. You made an automatic portal for users to check whether they have won or not.
How will you fetch the last digit of the lottery number? Let's say The lottery number is 5678927, and you want to display Hurray. You won the lottery as your last digit is 7
PS: Solve this using only Arithmetic Operators
For Solution Click Here and Subscribe for more challenges
This content originally appeared on DEV Community and was authored by Introschool
Introschool | Sciencx (2022-07-02T14:44:03+00:00) Can You Solve This Simple Python Challenge?. Retrieved from https://www.scien.cx/2022/07/02/can-you-solve-this-simple-python-challenge/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.