<｜begin▁of▁sentence｜>### Instruction:
Given an empty Graph object, how can you add a cycle with nodes [0, 1, 2, 3] and then another cycle with nodes ['a', 'b', 'c', 'd'] with each edge having an attribute 'weight' of 5 using NetworkX?
### Response:
import networkx as nx

G = nx.Graph()
nx.add_cycle(G, [0, 1, 2, 3])
nx.add_cycle(G, ['a', 'b', 'c', 'd'], weight=5)

print(G.edges(data=True))
<|EOT|>
