## Pages

Python Sets Exercises With Solutions

#### Exercices 200 || Solution

Write a program in python as a function that determines the intersection of two sets without using any predefined functions. Example if
``````E = {"Java", "Python", "Javascript", "C ++", "C #"}
and
F = {"VB.ET", "Java", "Kotlin", "Python"}``````
, the function returns the set:
``{"Java", "Python"}``

#### Exercise 201 || Solution

Write a python program as a function that determines the minimum and maximum values of given a set withowt using any predefined function. Example if
``E = {13 , 2 , 47 , 23 , 71 , 17}``
, the function returns (2,71)

#### Exercise 202 || Solution

Write a program in python as a function which examines whether two sets are disjoint or not. If the two sets are disjoint, the function must return True and False if not.

#### Exercise 203 || Solution

Write a python program as a function that determines the union of two sets without using any predefined functions. Example if
``E = {"Lenovo", "Hp", "del" , "Accent" , "Asus"}``
and
``F = {"Acer", "Thomson"}``
, the function returns the set:
``{"Lenovo", "Hp", "del" , "Accent" , "Asus" , "Acer", "Thomson"}``

#### Exercise 204 || Solution

Write a Python program as function which takes as parameters two sets E and F, such that E is included in F and returns the complement of F in E. Example if
``E = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'}``
and
``F = { 'c', 'd', 'e',  'h'}``
The function returns:
``{'a', 'b', 'f', 'g'}``

#### Exercise 205 || Solution

Given the following set of numerical tuples:
``E = {(12, 3 , 7 , 11) , (2, 9 , 5 , 13) , (1, 4 ,8)}``
Write a Python program that creates a set F whose elements are (Tuple , average of Tuple). Exemple for the set E cited above, the output must be:
``F =  {((2, 9, 5, 13), 7.25), ((12, 3, 7, 11), 8.25), ((1, 4, 8), 4.333333333333333)}``

Younes Derfoufi
CRMEF OUJDA

## Python Exercises With Solutions

1. Python Arithmetic Exercises
2. Equations & System Of Equations
3. Polynomials and Functions
4. Python Arithmetic Exercises
5. Numpy, Matplolib, Sympy , Scipy - Exercises
6. Python Arithmetic Exercises

Younes Derfoufi

## Sample Text 