Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - # -*- coding: utf-8 -*-
 - x = str('информатика') # Пункт 1
 - word1 = x[2:7]
 - word2 = x[7:10]
 - print(word1, word2)
 - c = str('муха') # Пункт 2
 - print(c.replace('муха', 'слон'))
 - b = str('вебинариум') # Пункт 3
 - B = (b[5:7])
 - B = B[::-1]
 - print(b[-2]) and (b[0:2] + B)
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment