You have 1 hour to submit as many answers as you can.
Put your code files if more than one into a .zip and submit it as one item.
Submit here. Make sure each code file is titled such that a judge would know which question it solves.
Submissions must be made before 5:45pm
BASIC – 1 Point
1. IS EVEN
Write a function is_even(num) that takes an integer and returns boolean True if num is an even number. An even number can be 0 or any number divisble by 2 (including negative numbers).
2. MULTIPLICATION TABLE
Write a program that prompts a user for a number and prints its multiplication table from 1 to 12.
EASY – 2 Points
3. BASIC CALCULATOR
Write a function calc(num1, num2, op) that takes 2 numbers and returns num1 <op> num2. op can be ‘+’, ‘-‘, ‘*’, or ‘/’.
4. PALINDROME CHECKER
Write a program that checks if a user-provided string is a palindrome (reads the same forward and backward).
5. MERGE
Write a function merge_lists(l1, l2), where l1 and l2 are python lists. The function will return a list of all the combined, unique values from both lists.
6. LENGTH SORT
Write a program that takes a list of strings, and returns the same list sorted by the length of each string (longest string first).
MEDIUM – 3 Points
7. FILE PROCESSING
Create a function that reads an external text file and counts the total number of words and digits found within it.
HARD – 4 Points
8. INSERTION POINT
Write a function that takes a list, an item, and an index/location in the list, and inserts the item at that location. The item should not override the existing value in that location but instead the values appearing at and after the Insertion Point must be shifted down.