## Solution Exercise 1: algorithm python to exchange values of two integers

Exercise 1 Write an algorithm in python which exchanges two integers m and n entered on the keyboard and which displays the values of the numbers before and after the exchange operation. Solution # Ask user to type values of n and mn = int(input("Type value of the integer n : "))m = int(input("Type value…

## Solution Exercise 35: convert an url to an hypertext link with Python

Exercise 35 Write a program in Python that allows you to transform a given url address into a link. Solution # Ask user to type an urlurl = input("Type an url :")# Ask user to type a text of url linktext_lien = input("Type a text of link")# convert the url text to a link url =…

## Solution Exercise 34: extract from list notes, only the notes above the average with Python

Exercise 34   Given the list of student notes: notes = [12, 04, 14, 11, 18, 13, 07, 10, 05, 09, 15, 08, 14, 16]. Write a Python program that allows you to extract from this list another list that contains only the notes above the average ( notes > = 10 ). Solution notes =…

## Solution Exercise 33: extract the characters of even index from string with Python

Exercise 33   Write a program in Python that asks the user to enter a string and display the characters of even index. Example for the string s = "Python", the program returns "Pto". Solution # Ask user to type a string ss = input("type a string s :")# define and initialize the string that will…

## Microsoft announces the launch of its Project xCloud in 5G in South Korea

Unveiled a little less than a year ago, the Microsoft cloud gaming service will be tested in October in 5G in South Korea thanks to an exclusive partnership with the operator SK Telecom.The cloud gaming offer announced in October 2018 by Microsoft is taking shape. The US company announced on September 4, 2019 the launch…

## Solution Exercise 32: all the lists obtained by swapping the terms of a given list in Python

Exercise 32  Write a program in Python that returns all the lists obtained by swapping the terms of a given list. Solution """import itertools module : This module implements many iterator bricks inspired by APL, Haskell and SML constructs."""import itertools # Example of use l = [1,2,3,4,5]permutations = itertools.permutations(l)L = list(permutations)print("All lists obtained by swapping…

## Solution Exercise 31: retrieves list of even integers and odd integers with Python

Exercise 31  Write a Python program that retrieves the list of even integers and the list of odd integers from a list of numbers. Solution # 1) define the function that retrieves the list of enven integersdef evenIntegers(l): # define the list of even integer even = [] # Browse the evens integers in the…