-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.py
More file actions
61 lines (38 loc) · 1.19 KB
/
hello.py
File metadata and controls
61 lines (38 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import bcrypt
import hashlib
class grec:
contenu = "salade tomate oignons"
sauce = "mayo"
print(grec.contenu + " sauce " + grec.sauce + " stp chef\n")
def impot_tamer(somme) :
print("Je taxe que les pauvres comme un batarde")
somme = somme - 1000
if (somme < 10000) :
print("Les impots vous ont mis dans la galere")
return (0);
else :
return (somme)
liste = ["pingouin", "gobelet", "troiscinqsept", "champignon"]
listenb = [45, 5648, 7913]
i = 0;
j = 0;
somme = 0;
liste.remove(liste[2])
while (i < len(liste)) :
print("Element no %d : %s" % (i, liste[i]))
i+=1
while (j < len(listenb)) :
somme = somme + listenb[j]
j = j.__add__(1)
print("La somme totale : %d" % (somme))
listenb.append(56)
somme = listenb[j] + somme
print("\nSomme de tout maggle : %d" % (somme))
somme = impot_tamer(somme)
print("Apres l'impot : %d" % (somme))
pipi = b"divisionekippp"
caca = b"fumeleshit"
hashed_pipi = hashlib.sha256(pipi).hexdigest()
hashed_caca = bcrypt.hashpw(caca, bcrypt.gensalt(14))
print ("\nHashed pipi : %s" % (hashed_pipi))
print ("Hashed caca : %s" % (hashed_caca))