karolinagergert

Untitled

Jul 4th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. a = 'today I write code'
  3. A = (capitalize('today I write code')) #эта функция при вводе слова со всеми буквами в нижнем регистре, первую букву пишет в верхнем
  4. b = A.find "W"
  5. B = A.rfind " "
  6. print([b:B])
Advertisement
Add Comment
Please, Sign In to add comment