27 Mar Markham Friday 19:30 Python Homework 20.03.20.
Question: Make a list by taking 10 input from user. Now delete all repeated elements of the list. Sample Input: 1,2,3,2,1,3,12,12,32 Sample Output: 1,2,3,12,32 ...
Question: Make a list by taking 10 input from user. Now delete all repeated elements of the list. Sample Input: 1,2,3,2,1,3,12,12,32 Sample Output: 1,2,3,12,32 ...
Question:Create a Time class and initialize it with hours and minutes. Make a method addTime which should take two time object and add them. For example: (2 hour and 50 min) + (1 hr and 20 min) is (4 hr and 10 min) Make a method displayTime...
Question 1. Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this: Sample Input: Which multiplication table would you like? 5 Sample Output: Here’s your table: 5 x 1 = 5 5 x 2...
Question: Modify the program we made in the class to finish the tk window just like below and make sure no error message shows when we click the button. ...
Question:Create a Time class and initialize it with hours and minutes. Make a method addTime which should take two time object and add them. E.g.- (2 hour and 50 min)+(1 hr and 20 min) is (4 hr and 10 min) Make a method displayTime which should print...
Question 1:Write a function buildTree that returns a tree using the nodes and references implementation (BinaryTree class) we learned in the class that looks like this:: ...
Question: Use TKinter to create following window with three buttons: the “blue” button will print “blue” in the python shell screen the “red” button will print “red” in the python shell screen if left mouse button click the “color” button will print “blue” in the python...
Question: Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Subarray is a small part of the array. For e.g. for array {2,3,4} is a subarray of the array {1,2,3,4,5} while array{1,3,5 } is not...
Question: Canada Cosmos Control has received a report of another incident. They believe that an alien has illegally entered our space. A person who witnessed the appearance of the alien has come forward to describe the alien’s appearance. It is your role within the CCC to...
Question: Create the following * pattern image base on your input Hint: Remember when we multiply a string by a number, the string is repeated the number times. >>> '*' * 10 '**********' Also you would need 2 for loops to solve the question Sample Input 1: 3 Sample Output 1: *** ** * * ** *** Sample Input 2: 5 Sample Output...