Can You Solve This Simple Python Challenge?

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…

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


Print Share Comment Cite Upload Translate
APA
Introschool | Sciencx (2024-03-29T05:34:35+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/.
MLA
" » Can You Solve This Simple Python Challenge?." Introschool | Sciencx - Saturday July 2, 2022, https://www.scien.cx/2022/07/02/can-you-solve-this-simple-python-challenge/
HARVARD
Introschool | Sciencx Saturday July 2, 2022 » Can You Solve This Simple Python Challenge?., viewed 2024-03-29T05:34:35+00:00,<https://www.scien.cx/2022/07/02/can-you-solve-this-simple-python-challenge/>
VANCOUVER
Introschool | Sciencx - » Can You Solve This Simple Python Challenge?. [Internet]. [Accessed 2024-03-29T05:34:35+00:00]. Available from: https://www.scien.cx/2022/07/02/can-you-solve-this-simple-python-challenge/
CHICAGO
" » Can You Solve This Simple Python Challenge?." Introschool | Sciencx - Accessed 2024-03-29T05:34:35+00:00. https://www.scien.cx/2022/07/02/can-you-solve-this-simple-python-challenge/
IEEE
" » Can You Solve This Simple Python Challenge?." Introschool | Sciencx [Online]. Available: https://www.scien.cx/2022/07/02/can-you-solve-this-simple-python-challenge/. [Accessed: 2024-03-29T05:34:35+00:00]
rf:citation
» Can You Solve This Simple Python Challenge? | Introschool | Sciencx | https://www.scien.cx/2022/07/02/can-you-solve-this-simple-python-challenge/ | 2024-03-29T05:34:35+00:00
https://github.com/addpipe/simple-recorderjs-demo