Python Lists Exercises Lucky Ticket Number Forward as Backward string Similar two halves of string

Опубликовано: 10 Июнь 2026
на канале: Tech Academy
26
1

In this Tutorial, Lists IF statement are the main syntax used
First: a ticket number is considered lucky if the half is equal to the second half. Note that ticket number is 6 digits and negative numbers are not allowed.
Second: user enter a string, the program read the string from the beginning as it reads its from the end.
Third: a string is considered symmetric if the first half of the string is the same as the second half.
these all using lists and if conditions only in Python.