def analyze_sentiment(text):
positive_words = ["love", "fantastic", "great", "amazing", "excellent"]
negative_words = ["hate", "terrible", "bad", "awful", "poor"]
cleaned_text = ''.join(c for c in text if c.isalnum() or c.isspace()).lower()
positive_count = sum(word in cleaned_text for word in positive_words)
negative_count = sum(word in cleaned_text for word in negative_words)
if positive_count > negative_count:
sentiment = "positive"
elif positive_count < negative_count:
sentiment = "negative"
else:
sentiment = "neutral"
return sentiment
text = "I love this movie! It's fantastic."
sentiment = analyze_sentiment(text)
print(f"Sentiment: {sentiment}")