Python 35.2 hashtag generator | SoloLearn: Learn to code for FREE!

0

Python 35.2 hashtag generator

Getting a lot of python work in today! If someone could help me figure out where my code went wrong that would be great! The SoloLearn material is great but they don’t teach how to handle input in the lessons groups often, then tell us to do all input stuff with it in their challenge problems. Tough sometimes, like this! The input is a word or string and it removes spaces and prefixes with a hashtag. How can I fix my code to do that? https://code.sololearn.com/cPRDt8HQR46M/?ref=app

1/23/2021 6:34:37 PM

Steve Barone

4 Answers

New Answer

+4

Steve Barone Return text1 or do like this s = input() def hashtagGen(text): #your code goes here return ("#" + text.replace(" ", "")) print(hashtagGen(s))

+3

Your function does not return text1, that's why there is no output.

+1

ah thanks Lisa, the simple mistakes always seem to get ya! I Am AJ ! appreciate the input, i will try your method as well!

-1

In the name of kindly generous ALLAH Hello Try this!) https://code.sololearn.com/cyRLvNHxrKsh/?ref=app