Question: def Challenge ( sen ) : words = sen . split ( ) # Split the string into words longest _ word =
def Challengesen:
words sensplit # Split the string into words
longestword
for word in words:
word joinc for c in word if cisalnum # Remove punctuation
if lenword lenlongestword:
longestword word
return longestword
# Get input string
sen inputEnter a string:
# Get the longest word
longestword Challengesen
# Concatenate with ChallengeToken and replace every third character
finaloutput longestword "mveypknfd
finaloutput finaloutput::Xlenfinaloutput
printfinaloutput
make this code into java code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
