Q:

Write a Python program to lowercase first n characters in a string

0

Write a Python program to lowercase first n characters in a string. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

str1 = 'W3RESOURCE.COM'
print(str1[:4].lower() + str1[4:])

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now