+ 1

Problem in the very last practice challenge

word = input() def hashtag(word): #complete the function body print("#",word) hashtag(word) sadly this code prints # beach but not #beach which is the correct answer, can someone help me to correct this mistake?

29th Jul 2023, 12:40 PM
Sir Mike
2 Antworten
+ 2
Note the future; the , in the printstatement produce always a space. + don‘t produce a space.
29th Jul 2023, 1:57 PM
Angela
Angela - avatar
0
To get the output without space , you need to concatenate in print command rather than using comma . https://code.sololearn.com/cw2qoNmZ1GqK/?ref=app
31st Jul 2023, 1:02 AM
Arpit Sharma
Arpit Sharma - avatar