%%js

var arry = [84,83,97,93];

function avgGradeCalc(array) {
    var grade = 0;
    var count = 0;

    jQuery.each(arry, function(index, value) {
        grade += value;
        count++;
    });

    return grade / count;
}

console.log("Your average grade is " + avgGradeCalc(arry) + "%");
<IPython.core.display.Javascript object>
def palindrome_homework(word):
    return word == word[::-1]
user_input = input("Enter a word with only lowercase and 0 spaces: ")

if palindrome_homework(user_input):
    print("Palindrome!")
else:
    print("This is not a palindrome")
Palindrome!