Frequency Distribution Python Code For Snake