s.s starting from index 2 up to (but not including) index 8. The characters at these indices are 'ф', 'о', 'р', 'м', 'а', 'т'. So, s1 becomes "формат".s [1] is the character at index 1, which is 'н'. s [3:7] includes characters from index 3 up to (but not including) index 7, which are 'р', 'м', 'а', 'т'. So, s2 becomes "н" + "рмат" = "нрмат".s [5] is the character at index 5, which is 'а'. s [0] is the character at index 0, which is 'и'. s [4] is the character at index 4, which is 'т'. So, s3 becomes "а" + "и" + "т" = "аит".s1, which is "формат".s2, which is "нрмат".s3, which is "аит".Output:
формат
нрмат
аит