Hi there I am currently trying to complete the coin flip game of chance but the code I have made does not seem to work and I cannot figure it out, any help would be greatly appreciated! thanks in advance!

```
import random
money = 100
num = random.randint(1, 10)
#Write your game of chance functions here
def coin_flip(guess, bet):
flip = random.randint(1, 2)
if flip == 1:
flip = "Heads"
elif flip == 2:
flip = "Tails"
if guess == 1:
print("Well done, you have won" + str(money*2) + "congratulations!")
elif guess == 2:
print("Well done, you have won" + str(money*2) + "congratulations!")
elif guess != 1:
print("Unlucky, you have guessed wrong, you have unfortunately lost" + str(money/2) + "better luck next time!")
else:
print("Unlucky, you have guessed wrong, you have unfortunately lost" + str(money/2) + "better luck next time!")
```