dav74 commited on
Commit
4a389b7
·
verified ·
1 Parent(s): 945bcfc

Upload code.txt

Browse files
Files changed (1) hide show
  1. code.txt +2 -2
code.txt CHANGED
@@ -1302,12 +1302,12 @@ Exemples :
1302
  ;;;
1303
  c = 0
1304
  resultats = {'Dupont': {'DS1': [15.5, 4],'DM1': [14.5, 1],'DS2': [13, 4],'PROJET1': [16, 3],'DS3': [14, 4]},'Durand': {'DS1': [6 , 4],'DS2': [8, 4],'PROJET1': [9, 3],'IE1': [7, 2],'DS3': [12, 4]}}
1305
- if moyenne("Dupont", resultats) == 14.5:
1306
  print("Test 1 : OK")
1307
  c += 1
1308
  else :
1309
  print("Test 1 : échec")
1310
- if moyenne("Durand", resultats) == 8.5:
1311
  print("Test 2 : OK")
1312
  c += 1
1313
  else :
 
1302
  ;;;
1303
  c = 0
1304
  resultats = {'Dupont': {'DS1': [15.5, 4],'DM1': [14.5, 1],'DS2': [13, 4],'PROJET1': [16, 3],'DS3': [14, 4]},'Durand': {'DS1': [6 , 4],'DS2': [8, 4],'PROJET1': [9, 3],'IE1': [7, 2],'DS3': [12, 4]}}
1305
+ if round(moyenne("Dupont", resultats)) == 15:
1306
  print("Test 1 : OK")
1307
  c += 1
1308
  else :
1309
  print("Test 1 : échec")
1310
+ if round(moyenne("Durand", resultats)) == 9:
1311
  print("Test 2 : OK")
1312
  c += 1
1313
  else :