AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.217.20
Web Server : Apache
System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : logmcpe ( 111175)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/logmcpe/www/TMCPRO/pages/documents/../python/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/TMCPRO/pages/documents/../python/TP_dictionnaire.py
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 14 22:29:31 2022

@author: pro
"""

my_liste = []


for i in range(1,10,1):
    a = i**2
    my_liste.append(a)
    
    
print(my_liste)
    


classeur_rapp = {
    "nom" : "yassin",
    "prenom": "ayoub",
    "age": 30 
    
    }


for i in classeur_rapp:
    print(i," - ",classeur_rapp[i])

classeurr = {
    
    "positif": [],
    "negatif": []
    }

def trier(classeurr , nombre):
    
    if nombre > 0 :
        classeurr["positif"].append(nombre)
    else:
        classeurr["negatif"].append(nombre)
    #print(classeurr.values())
    return classeurr
        

a =  trier(classeurr, 8)
a =  trier(classeurr, -38)
a =  trier(classeurr, 78)
a =  trier(classeurr, 87)
a =  trier(classeurr, 8)
print(a.values())

#print(classeur.keys())
print(classeurr.values())

trier(classeurr, 6)
print(classeurr.values())
#classeur["positif"].append("78")


print(classeurr.values())

AnonSec - 2021