Solution Exercise 49: Extending the Tk class via inheritance
Exercise 49 1- Create a class called TK_extended which inherits from TK class and having the attributes:- Master: that represents the name of the main window- title: that represents the…
Python Courses & Exercises with solutions !
Exercise 49 1- Create a class called TK_extended which inherits from TK class and having the attributes:- Master: that represents the name of the main window- title: that represents the…
Exercise 49 Write a Python program as a function that counts the number of times a character appears in a string without using any predefined functions. Solution def caracter_count(s ,…
Exercise 3 write a python algorithm as function that takes as parameter a list l and returns a tuple of two lists (l_old , l_even) where l_even is make up…
Exercise 2 write python algorithm to swap the first element with the last element of given list. Example: if L = ["Python" , "Java" , "C++" , "Javascript"] , the…
Execise 1 || Solution write python algorithm to display all element of given list by two differents ways. Exercise 2 || Solution write python algorithm to swap the first element…
Execise 1 write python algorithm to display all element of given list by two differents way Solution # dfine a some listL = ["laptop" , "ipad" , "iphone" , "tablet"…
Exercise 48 Write a program as a function which takes as parameters a pair of strings (s1, s2) and which returns the string s obtained by concatenating in an alternative…