+ 3
Challenge (Jack's Lucky Ticket)
One day, Jack was going home by tram. When he got his ticket, he noticed that number on the ticket was not lucky. A lucky ticket is a six-digit number on the ticket in which sum of the first three digits is equal to the sum of the last three digits.For example, number 165912 is lucky because sum of ,1+6+5=12 and 9+1+2= 12. Since the number on the ticket wasn't lucky, Jack needs your help to find the next lucky ticket number.eg, if Jack's ticket number is 165901, then the next lucky ticket num 165903
4 Answers
+ 10
+ 4
With Error Handling
https://code.sololearn.com/cr5UrE2Fv4M4/?ref=app
+ 1
Thats my code
https://code.sololearn.com/cKS5Nu5SL9Ff/?ref=app
0
https://code.sololearn.com/cgd0Ao7O8JkA/?ref=app
My try in python.