Python

Determining Grade Distribution for Each Student
AskAI

This technical problem involves creating a new dataframe that includes the grade distribution for each student. Given a dataframe of student grades, the code solution should return a new dataframe with the grade distribution for each student.

Sum of even numbers in a list
AskAI

This Python function calculates the sum of the even numbers in a given list.

First character not repeated in a string
AskAI

This problem asks you to find the first character in a string that is not repeated elsewhere in the string. For example, given the string "abcdab", the answer would be "c ".

Sum of array elements
AskAI

This problem asks the user to return the sum of all the elements in an array. An example input and output is provided.

Find the row with the maximum value in column C and return the values in...
AskAI

Given a dataframe, find the row with the maximum value in column 'C' and return the values in columns 'A' and 'B' for that row.

Is This Array a Magic Square?
AskAI

Given a 2D array of integers, write a function to determine whether the array is a valid magic square. A magic square is a 2D array of integers where the sum of each row , column, and diagonal is the same.

Given a list of integers, return a dictionary with the integer as the key and...
AskAI

Given a list of integers, this function returns a dictionary with the integer as the key and the number of times the integer appears in the list as the value.

Web scraping: Extract title and body text from a URL
AskAI

This technical problem involves writing a Python script to scrape the title and body text from a given URL.