Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 158ab11

Browse files
Create Day 6.md
1 parent 2011239 commit 158ab11

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎30 Days of Code HackerRank/Day 6.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Day 6: Let's Review
2+
3+
```
4+
t = int(raw_input())
5+
for _ in range(t):
6+
line = raw_input()
7+
first = ""
8+
second = ""
9+
10+
for i, c in enumerate(line):
11+
if (i & 1) == 0:
12+
first += c
13+
else:
14+
second += c
15+
print first, second
16+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /