Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję0
how to upper or lower specified substring??
how to upper or lower specified substring in python with upper() or lower()??
3 odpowiedzi
+ 1
s= "HELLO python"
print( s[:5].lower() )
print( s[6:].upper() )
+ 1
this mean that every string have a method called upper() for get itself to uppercase, and a method lower() to return itself to lowercase
0
is that means i cant put any arguments upper("here") ??? like split()