The local transport authority is organizing an online picture contest.
Participants must take pictures of transport means in an original way, and then post the picture on Instagram using a specific ```hashtag```.

The local transport authority needs your help. They want you to take out the ```hashtag``` from the posted message. Your task is to implement the function

```python
def omit_hashtag(message, hashtag):
```

## Examples 

```
* ("Sunny day! #lta #vvv", "#lta") -> "Sunny day!  #vvv" (notice the double space)
* ("#lta #picture_contest", "#lta") -> " #picture_contest"
```

## Notes

* When multiple occurences of the hashtag are found, delete only the first one.

* In C, you should modify the ```message```, as the function returns a void type. In Python, you should return the answer.

* There can be erroneous messages where the hashtag isn't present. The message should in this case stay untouched.

* The hashtag only consists of alphanumeric characters.

Source: codewars | Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code: def omit_hashtag(message, hashtag):
	

Solutions:
def omit_hashtag(message, hashtag):
	return message.replace(hashtag, '', 1)


omit_hashtag = lambda message, hashtag: message.replace(hashtag, '', 1)


def omit_hashtag(message, hashtag):
	return message.replace(hashtag, '', 1) if hashtag in message else message


omit_hashtag = lambda m, h: m.replace(h, '', 1)


def omit_hashtag(s, c):
	return s.replace(c, '', 1)


def omit_hashtag(s, hashtag):
	return s.replace(hashtag, '', 1)


import re

def omit_hashtag(message, hashtag):
	return re.sub(hashtag, '', message, count=1)


def omit_hashtag(message, hashtag):
	index = message.find(hashtag)
	if index == -1:
		return message
	else:
		return message[:index] + message[index + len(hashtag):]


def omit_hashtag(message, h):
	return message.replace(h, '', 1)


def omit_hashtag(message, hashtag):
	if hashtag in message:
		found_at = message.index(hashtag)
		return message[0:found_at] + message[found_at + len(hashtag):]
	else:
		return message