23 Mar Aurora Saturday 14:30 Python Homework 20.03.21.
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: 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...
Question: The International Standard Book Number (ISBN) is a 13-digit code for identifying books. These numbers have a special property for detecting whether the number was written correctly. The 1-3-sum of a 13-digit number is calculated by multiplying the digits alternately by 1’s and 3’s (see example)...
Question: The International Standard Book Number (ISBN) is a 13-digit code for identifying books. These numbers have a special property for detecting whether the number was written correctly. The 1-3-sum of a 13-digit number is calculated by multiplying the digits alternately by 1’s and 3’s (see example)...
Question: Write code to reverse a string using recursion: Sample Input 1: Apple Sample Output 1: epplA Sample Input 2: Orange Sample Outpute 2: egnarO...