Modif des tests|TP_3.7|UPDATE dico_ord.py

This commit is contained in:
Fred Z 2018-02-02 12:21:16 +01:00
parent 14a882caa1
commit 041ab4d5de
1 changed files with 4 additions and 2 deletions

View File

@ -42,8 +42,10 @@ class DictionnaireOrdonne:
{'melon': 15, 'poire': 34, 'pomme': 52, 'prune': 128}
>>> legumes = DictionnaireOrdonne(carotte = 26, haricot = 48)
>>> print(legumes)
{'carotte': 26, 'haricot': 48}
# Test possible seulement aver python 3:6 ()
#>>> print(legumes)
#{'carotte': 26, 'haricot': 48}
>>> len(legumes)
2