We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d29c9e2 commit 6159fedCopy full SHA for 6159fed
Day9/ConvertStringToInteger_sb.py
@@ -0,0 +1,9 @@
1
+def solution(s):
2
+ answer = int(s)
3
+ return answer
4
+
5
+str1 = "1234"
6
+str2 = "-1234"
7
8
+print(solution(str1))
9
+print(solution(str2))
Day9/FindKim_sb.py
@@ -0,0 +1,6 @@
+def solution(seoul):
+ answer = seoul.index("Kim")
+ return "김서방은 " + str(answer) + "에 있다"
+s1 = ["Jane", "Kim"]
+print(solution(s1))
Day9/Watermallon_sb.py
@@ -0,0 +1,8 @@
+def solution(n):
+ answer = '수박'*(n//2)+'수'*(n%2)
+n1 = 3
+n2 = 4
+print(solution(n1))
+print(solution(n2))
0 commit comments