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…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

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 ,<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 ]. 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 . 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: ]
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/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.