We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cc77ab commit 1e660c9Copy full SHA for 1e660c9
Python3/strings.py
@@ -1,8 +1,13 @@
1
str1 = "some string"
2
3
-print(str1.title())
4
-print(str1.upper())
5
-print(str1.lower())
+print(str1.title()) #Some String
+print(str1.upper()) #SOME STRING
+print(str1.lower()) #some string
6
+print(str1.capitalize()) #Some string
7
+print(str1.swapcase()) #SOME STRING
8
+print(str1.replace("some", "another")) #another string
9
+print(str1.isupper()) #False
10
+print(str1.islower()) #True
11
12
#f-strings
13
first_name = "john"
0 commit comments