HTMLify
Home
Log in
Register
Dashboard
Frames
API
LeetCode - Truncate Sentence - Python
Views: 25 | Author:
abh
class
Solution
:
truncateSentence
=
lambda
_
,
s
,
k
:
" "
.
join
(
s
.
split
()[:
k
])
Run >
Share this file:
Copy
Short Link
View Raw
Download File
(68 B)
Embed Code
Clone
Comments
Comment