Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- #----------------------------------------------------------------------------
- # Created by : Alain Van Kerckhoven
- # Created Date: 29 juin 2022
- # Licence : GPL
- # Version : 1.0
- # ---------------------------------------------------------------------------
- """
- Comment réaliser la liste des différents assortiments de deux boules
- boules de glace distinctes ?
- """
- # ---------------------------------------------------------------------------
- parfums = ["Banane", "Chocolat", "Citron", "Pistache", "Cheval", "Fraise", "Vanille"]
- deja_pris = []
- for i in parfums:
- for g in parfums:
- if g==i or g in deja_pris:
- continue
- else:
- print(i, "-", g)
- deja_pris.append(i)
Advertisement
Add Comment
Please, Sign In to add comment