TORONTO KIDS COMPUTER CLUB | admin
1
archive,paged,author,author-admin,author-1,paged-93,author-paged-93,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Author: admin

11 Apr Tuesday 17:30 Python Homework 21.04.06.

Question 1: We have a list of following: zoo = ['monkeys', 'tigers', 'pandas', 'penguins', 'giraffes', 'hippos', 'bears'] how to retrieve a slice of list zoo, so you can get the following result? ['monkeys', 'pandas', 'giraffes', 'bears'] Question 2: from the same list of zoo in the question 1, how to retrieve...

Read More

11 Apr Monday 20:00 Python Practice 21.04.05.

Question: You are given an array A of Q integers and Q queries. In each query, you are given an integer i (1≤i≤N).Your task is to find the minimum index greater than i (1≤i≤N) such that:Sum of digits of Ai is greater than the sum of digits of AjAi < AjIf there is no answer, then print -1. Input formatThe first line contains two numbers N and Q.The...

Read More