Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added __pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified q01_longest_even_word/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified q01_longest_even_word/__pycache__/build.cpython-36.pyc
Binary file not shown.
10 changes: 8 additions & 2 deletions q01_longest_even_word/build.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# %load q01_longest_even_word/build.py
# Default imports

import re


a='my name is Bhavesh'
# Write your solution here :
mystr='my name is Bhavesh'
def q01_longest_even_word(sentence):
even_list = [x for x in sentence.split() if len(x)%2==0]
output = max(even_list, key=len) if even_list else 0
return output




Binary file modified q01_longest_even_word/tests/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified q01_longest_even_word/tests/__pycache__/test.cpython-36.pyc
Binary file not shown.