Skip to content

Commit ab8fb6a

Browse files
committed
Added loops python solution
1 parent c707169 commit ab8fb6a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ This repository is part of the [Competitive Programmig guide](https://github.com
8383
| I/O |Python-print|[Python](python/python-print.py)|
8484
| Data Structure |List|[Python](python/list.py)|
8585
| Python Loops |Loops|[Python](python/loop.py)|
86-
87-
88-
89-
90-
86+
| Split and join |Strings |[Python](python/split_and_join.py)|
9187

9288
## 10 Days Javascript
9389

python/split_and_join.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://www.hackerrank.com/challenges/python-string-split-and-join/problem
2+
def split_and_join(line):
3+
# write your code here
4+
# .join() with lists
5+
line = line.replace(" ", "-")
6+
return line

0 commit comments

Comments
 (0)