Skip to content

Commit

Permalink
Merge pull request #22 from cdlab-sit/sota
Browse files Browse the repository at this point in the history
Sota
  • Loading branch information
Sota-Watanabe authored Feb 22, 2019
2 parents 37762ae + ef7dc62 commit 975817f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sota222/02.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#「パトカー」+「タクシー」の文字を先頭から交互に連結して文字列「パタトクカシーー」を得よ

str1 = "パトカー"
str2 = "タクシー"

plus_str = lambda x, y: x + y
print(''.join([plus_str(st1, st2) for st1, st2 in zip(str1, str2)]))

0 comments on commit 975817f

Please sign in to comment.