---
# System prepended metadata

title: 'Python pass :snake:'

---

# Python pass :snake:


Implement the isolate function that: 

1. Takes students dictionary where each student's value is his class.
2. Returns a dicitionary of classes as keys where each class has a value of list of students in that class, in any order.

```python
def isolate(students):
    # TODO:
    pass


students = {
    'Ahmed': 'Class 1',
    'Mustafa': 'Class 3',
    'Ali': 'Class 2',
    'Sara': 'Class 1',
    'Zainab': 'Class 1',
    'Zain': 'Class 2',
    
}   
print(isolate(students))
"""This should return 
{
    'Class 1': ['Ahmed', 'Sara', 'Zainab'],
    'Class 3': ['Mustafa'],
    'Class 2': ['Ali', 'Zain']
}
NOTE: The order of classes doesn't matter
"""
```

<br/><br/>

# Dart pass :dart:

**Q1:** Take two lists containing the names of computiq team: 

```dart
  List listA = [
    "Muklah",
    "Diyar",
    "Noorhan",
    "Ali",
    "Abdulbasit",
    "Dena",
    "Saba",
    "Fadi",
    "Karrar",
    "Ahmed"
  ];
  List listB = [
    "Diyar",
    "Noorhan",
    "Muklah",
    "Saba",
    "Mustafa",
    "Ahmed",
    "Fadi",
    "Dena",
    "Hassan",
    "Ali",
  ];
```

Write a program that returns the common names between **listA** and **listB**, and then find the names that contain the letter **M**.

<br/>

---

<br/>



**Q2:**
* Create a class called Account that has 5 private attributes :
```dart
 _accountNo : int
 _name: String
 _dateOfBirth : String
 _amount: Double
 _dateCreated : DateTime
```


* Create the following Methods:
**insert()** passes the account information (account number, name, date of birth, available amount, and account creation date).
**deposit()** is responsible for the deposit process.
**withdraw()** debit from the account at a certain value.
**checkBalance()** to see the balance on the account.

* Print the information of each account using **toString()**.
* After creating the class, you are now required to create **3 objects** that will simulate the process.

**Note:** (amount) represents the total account value.



<br/><br/>



# How to send a test solution :rocket:
1. Create an account on Github.
2. Create a Repository under the name **(python-dart-pass)** and it must be **public**.
3. Create a folder called **(python-pass)** and put the solution in it and the same for 
the dart and then upload them to the Repository you created. 
4. Copy the Repository link and place it in the form.


<br />


<center>
    <h4>
        <strong>
            GOOD LUCK
        </strong>
    </h4>
</center>