We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad99df commit 4db8cbeCopy full SHA for 4db8cbe
Problem Set 2/camel/camel.py
@@ -0,0 +1,9 @@
1
+camel_case = input("camelCase: ")
2
+
3
+print("snake_case: ", end="")
4
5
+for i in camel_case:
6
+ if i.isupper():
7
+ print("_" + i.lower(), end="")
8
+ else:
9
+ print(i, end="")
0 commit comments