<｜begin▁of▁sentence｜>### Instruction:
Given a network graph, where nodes are members of a karate club and edges represent interactions between members, how can you assign node colors based on their degree using a sequential color scheme suitable for a light background?
### Response:
import networkx as nx
from graspologic.layouts import sequential_colors

# Generate a graph
G = nx.karate_club_graph()

# Define node values based on degree of each node
node_values = {node: val for node, val in G.degree()}

# Generate the sequential colors for nodes
node_colors = sequential_colors(node_values, light_background=True)

# Display the node colors
for node, color in node_colors.items():
    print(f'Node {node} has color {color}')
<|EOT|>
