Hashtag Generator

Task

Complete the program to output the input text starting with the hashtag (#). Also, if the user entered several words, the program should delete the spaces between them.

Sample Input

  • code sleep eat repeat

Sample Output

  • #codesleepeatrepeat

s = input()

def hashtagGen(text):
	#your code goes here
	
	output = "".join("#" +s).replace(" ","")
	return output

print(hashtagGen(s))

Last updated