Sofya_Soloveva_

Untitled

Jul 4th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. s = "информатика"
  2. s1 = s[2:7]
  3. print(s1)
  4. s2 = s[7:10]
  5. print(s2)
  6. s = 'муха'
  7. s = s.replace ("м","с")
  8. s = s.replace ("у","л")
  9. s = s.replace ("х","о")
  10. s = s.replace ("а","н")
  11. print(s)
  12. s = 'вебинариум'
  13. s1 = s[8:]
  14. print(s1)
  15. s2 = s[0:2]+ s[6:4:-1]
  16. print(s2)
Advertisement
Add Comment
Please, Sign In to add comment