<｜begin▁of▁sentence｜>### Instruction:
Given Zachary’s Karate Club graph, which networkx can generate using the 'karate_club_graph' function, how can you determine the club affiliation for node 5 and node 9? Write Python code using networkx to find out which clubs nodes 5 and 9 belong to.
### Response:
import networkx as nx

# Generate the Karate Club Graph
G = nx.karate_club_graph()

# Get the name of the club to which a node belongs
club_name_node_5 = G.nodes[5]['club']
club_name_node_9 = G.nodes[9]['club']

# Print out the club names
print(f'Node 5 belongs to {club_name_node_5} club.')
print(f'Node 9 belongs to {club_name_node_9} club.')
<|EOT|>
