Update learning.py