<｜begin▁of▁sentence｜>### Instruction:
Given a graph whose edge set with weights is [('A', 'B', 4), ('A', 'C', -3), ('B', 'C', 5)], can you check if the graph has any negatively weighted edges using NetworkX?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()

# Add edges with weights
G.add_edge('A', 'B', weight=4)
G.add_edge('A', 'C', weight=-3)
G.add_edge('B', 'C', weight=5)

# Check if the graph has any negatively weighted edges
got_negative_weight = nx.is_negatively_weighted(G)

print('Graph has negatively weighted edge:', got_negative_weight)
<|EOT|>
