World's Best AI Learning Platform with profoundly Demanding Certification Programs
Designed by IITian's, only for AI Learners.
Designed by IITian's, only for AI Learners.
New to InsideAIML? Create an account
Employer? Create an account
Download our e-book of Introduction To Python
4.5 (1,292 Ratings)
559 Learners
Neha Kumawat
2 years ago
import string
text = 'Tutorialspoint - simple easy learning.'
print string.capwords(text)
print string.upper(text)
Tutorialspoint - Simple Easy Learning.
TUTORIALSPOINT - SIMPLE EASY LEARNING.
import string
text = 'Tutorialspoint - simple easy learning.'
transtable = string.maketrans('tpol', 'wxyz')
print text.translate(transtable)
Tuwyriazsxyinw - simxze easy zearning.