118. Capitalize and Center Method in Python with Example Code || Padding, Python String Methods - 1

Published: 28 September 2022
on channel: Bhavatavi
7
0

Code:
string="python is awesome."
capitalized_string=string.capitalize()
print('Capitalized string:',capitalized_string)

string="+ is an operator."
capitalized_string=string.capitalize()
print('Capitalized string:',capitalized_string)

#center method

string="python is awesome."
new_string=string.center(24)
print(new_string)

new_string=string.center(24,'*')
print(new_string)


On this page of the site you can watch the video online 118. Capitalize and Center Method in Python with Example Code || Padding, Python String Methods - 1 with a duration of hours minute second in good quality, which was uploaded by the user Bhavatavi 28 September 2022, share the link with friends and acquaintances, this video has already been watched 7 times on youtube and it was liked by 0 viewers. Enjoy your viewing!