fork download
  1. import fileinput
  2. import random
  3.  
  4. skip = True
  5. ingredients = []
  6. for line in fileinput.input():
  7. skip = not skip
  8. if skip:
  9. continue
  10. ingredients.append(line)
  11. print(random.sample(ingredients, 5))
Success #stdin #stdout 0.03s 9960KB
stdin
Bok Choy
Bok Choy
Snake Beans
Snake Beans
Sorrel Leaves
Sorrel Leaves
Rocket Leaves
Rocket Leaves
Drumstick
Drumstick
Cherry Tomatoes
Cherry Tomatoes
Kaffir Lime
Kaffir Lime
Plantain
Plantain
Turnip
Turnip
Sweet Potatoes
Sweet Potatoes
Round Gourd
Round Gourd
Ridge Gourd
Ridge Gourd
Pimiento
Pimiento
Spinach
Spinach
Onion
Onion
Mustard Leaves
Mustard Leaves
Mushroom
Mushroom
Radish
Radish
Shallots
Shallots
Lettuce
Lettuce
Leek
Leek
Pumpkin
Pumpkin
Yam
Yam
Jalapeno
Jalapeno
Jackfruit
Jackfruit
Horseradish
Horseradish
Spring Onion
Spring Onion
Green Peas
Green Peas
Green Chillies
Green Chillies
Cluster Beans
Cluster Beans
Gherkins
Gherkins
Garlic
Garlic
French Beans
French Beans
Fenugreek
Fenugreek
Cucumber
Cucumber
Zucchini
Zucchini
Corn
Corn
Shiitake Mushroom
Shiitake Mushroom
Celery
Celery
Cauliflower
Cauliflower
Carrot
Carrot
Capsicum
Capsicum
Capers
Capers
Broccoli
Broccoli
Broad Beans
Broad Beans
Bottle Gourd
Bottle Gourd
Bitter Gourd
Bitter Gourd
Lady Finger
Lady Finger
Lotus Stem
Lotus Stem
Bell Pepper
Bell Pepper
Beetroot
Beetroot
Pigweed
Pigweed
Cabbage
Cabbage
Bamboo Shoot
Bamboo Shoot
Baby Corn
Baby Corn
Avocado
Avocado
Eggplant
Eggplant
Asparagus
Asparagus
Ash Gourd
Ash Gourd
Artichoke
Artichoke
Colocasia
Colocasia
Potatoes
Potatoes
Ginger
Ginger
Coriander Powder
Coriander Powder
Chives
Chives
Galangal
Galangal
Tulsi
Tulsi
Sage
Sage
Rosemary
Rosemary
Yellow Chillies
Yellow Chillies
Oregano
Oregano
Nasturtium
Nasturtium
Salt
Salt
Mustard Powder
Mustard Powder
Paprika
Paprika
Mint Leaves
Mint Leaves
Marjoram
Marjoram
Lemongrass
Lemongrass
Red Chilli
Red Chilli
Saffron
Saffron
Dried Fenugreek Leaves
Dried Fenugreek Leaves
Kashmiri Mirch
Kashmiri Mirch
Onion Seeds
Onion Seeds
Mace
Mace
Nutmeg
Nutmeg
Herbs
Herbs
Thyme
Thyme
Turmeric
Turmeric
Garam Masala
Garam Masala
Five Spice Powder
Five Spice Powder
Fenugreek Seeds
Fenugreek Seeds
Fennel
Fennel
Green Cardamom
Green Cardamom
Dry Ginger Powder
Dry Ginger Powder
Dill
Dill
Curry Leaves
Curry Leaves
Cumin Seeds
Cumin Seeds
Coriander Seeds
Coriander Seeds
Coriander Leaves
Coriander Leaves
Cloves
Cloves
Cinnamon
Cinnamon
Star Anise
Star Anise
Cayenne
Cayenne
Caraway Seeds
Caraway Seeds
Cajun Spices
Cajun Spices
Rock Salt
Rock Salt
Black Pepper
Black Pepper
Black Cumin
Black Cumin
Bay Leaf
Bay Leaf
Basil
Basil
Black Cardamom
Black Cardamom
Asafoetida
Asafoetida
Aniseed
Aniseed
Raw Mango Powder
Raw Mango Powder
Allspice
Allspice
Carom Seeds
Carom Seeds
Parsley
Parsley
Acacia
Acacia
Carom Seeds
Carom Seeds
Parsley
Parsley
Acacia
Acacia
Amaranth
Amaranth
Flour
Flour
Muesli
Muesli
Oats
Oats
Jowar
Jowar
Brown Rice
Brown Rice
Arborio Rice
Arborio Rice
Water Chestnut flour
Water Chestnut flour
Barnyard Millet
Barnyard Millet
Tapioca
Tapioca
Semolina
Semolina
Ragi
Ragi
Puffed Rice
Puffed Rice
Buckwheat
Buckwheat
Kidney Beans
Kidney Beans
Whole Bengal Gram
Whole Bengal Gram
Green Gram
Green Gram
All Purpose Flour
All Purpose Flour
Whole Brown Lentils
Whole Brown Lentils
Husked Black Gram
Husked Black Gram
Husked Green Gram
Husked Green Gram
Couscous
Couscous
Cornmeal
Cornmeal
Pressed Rice
Pressed Rice
Rice
Rice
Breadcrumbs
Breadcrumbs
Bread
Bread
Black-eyed Beans
Black-eyed Beans
Black Gram
Black Gram
Black Beans
Black Beans
Gram flour
Gram flour
Bengal Gram (Split)
Bengal Gram (Split)
Chickpeas
Chickpeas
Basmati Rice
Basmati Rice
Barley
Barley
Pearl Millet
Pearl Millet
Whole Wheat Flour
Whole Wheat Flour
Pigeon Pea
Pigeon Pea
Bean Sprouts
Bean Sprouts
Gruyere Cheese
Gruyere Cheese
Gouda Cheese
Gouda Cheese
Feta Cheese
Feta Cheese
Milk
Milk
Brie Cheese
Brie Cheese
Cream Cheese
Cream Cheese
Ricotta Cheese
Ricotta Cheese
Parmesan Cheese
Parmesan Cheese
Blue Cheese
Blue Cheese
Cheddar Cheese
Cheddar Cheese
Mascarpone Cheese
Mascarpone Cheese
Cream
Cream
Provolone Cheese
Provolone Cheese
Mozzarella Cheese
Mozzarella Cheese
Khoya
Khoya
Hung Curd
Hung Curd
Yogurt
Yogurt
Cottage Cheese
Cottage Cheese
Condensed Milk
Condensed Milk
Clarified Butter
Clarified Butter
Buttermilk
Buttermilk
Butter
Butter
Cranberry
Cranberry
Kiwi
Kiwi
Blueberries
Blueberries
Mango
Mango
Watermelon
Watermelon
Tomato
Tomato
Strawberry
Strawberry
Water Chestnut
Water Chestnut
Papaya
Papaya
Orange Rind
Orange Rind
Orange
Orange
Olives
Olives
Pear
Pear
Sultana
Sultana
Mulberry
Mulberry
Lychee
Lychee
Lemon Juice
Lemon Juice
Lemon Rind
Lemon Rind
Lemon
Lemon
Raisins
Raisins
Jamun
Jamun
Tamarind
Tamarind
Grapefruit
Grapefruit
Indian Gooseberry
Indian Gooseberry
Dried Fruit
Dried Fruit
Dates
Dates
Custard Apple
Custard Apple
Currant
Currant
Cooking Apples
Cooking Apples
Coconut
Coconut
Cherry
Cherry
Cape Gooseberry
Cape Gooseberry
Banana
Banana
Peach
Peach
Apricots
Apricots
Apples
Apples
Figs
Figs
Grapes
Grapes
Pomegranate
Pomegranate
Pineapple
Pineapple
Guava
Guava
Plum
Plum
Shrimp
Shrimp
Tuna Fish
Tuna Fish
Shellfish
Shellfish
Shark
Shark
Hilsa
Hilsa
Sardines
Sardines
Salmon
Salmon
Prawns
Prawns
Pomfret
Pomfret
Perch
Perch
Pearl spot
Pearl spot
Mussels
Mussels
Mullet
Mullet
Squids
Squids
Haddock
Haddock
Flounder
Flounder
Fish Stock
Fish Stock
Fish
Fish
Fish Fillet
Fish Fillet
Cuttle fish
Cuttle fish
Cod
Cod
Clams
Clams
Cat fish
Cat fish
Mackerel
Mackerel
Anchovies
Anchovies
Canola Oil
Canola Oil
Chia Seeds
Chia Seeds
Hazelnut
Hazelnut
Pine Nuts
Pine Nuts
Mustard Oil
Mustard Oil
Sunflower Seeds
Sunflower Seeds
Sesame Oil
Sesame Oil
Pistachio
Pistachio
Olive Oil
Olive Oil
Mustard Seeds
Mustard Seeds
Poppy Seeds
Poppy Seeds
Sesame Seeds
Sesame Seeds
Peanuts
Peanuts
Chironji
Chironji
Cashew Nuts
Cashew Nuts
Blanched Almonds
Blanched Almonds
Almonds
Almonds
Walnuts
Walnuts
Walnuts
Walnuts
Almond Milk
Almond Milk
Red Wine Vinegar
Red Wine Vinegar
Red Wine
Red Wine
Margarine
Margarine
Soy Milk
Soy Milk
White Wine
White Wine
Yeast
Yeast
White Pepper
White Pepper
Rice Vinegar
Rice Vinegar
Sea Salt
Sea Salt
Hoisin Sauce
Hoisin Sauce
Malt Vinegar
Malt Vinegar
Chocolate Chips
Chocolate Chips
Quinoa
Quinoa
Rice Flour
Rice Flour
Polenta
Polenta
Oyster Sauce
Oyster Sauce
Guchchi
Guchchi
Flat Noodles
Flat Noodles
Balsamic Vinegar
Balsamic Vinegar
Coconut Oil
Coconut Oil
Barfi
Barfi
Rice Noodles
Rice Noodles
Coffee
Coffee
Beer
Beer
Chocolate
Chocolate
Sake
Sake
Vinaigrette
Vinaigrette
Vanilla Essence
Vanilla Essence
Tortilla
Tortilla
Tomato Puree
Tomato Puree
Vegetable Oil
Vegetable Oil
Tartaric Acid
Tartaric Acid
Soya Sauce
Soya Sauce
Vinegar
Vinegar
Sharbat
Sharbat
Vermicelli
Vermicelli
Sev
Sev
Rum
Rum
Roux
Roux
Petha
Petha
Pasta
Pasta
Papad
Papad
Paan
Paan
Meringue
Meringue
Mayonnaise
Mayonnaise
Melon Seeds
Melon Seeds
Makhana
Makhana
Vetiver
Vetiver
Kewda
Kewda
Jus
Jus
Jelly
Jelly
Rose Water
Rose Water
Gold Leaves
Gold Leaves
Glycerine
Glycerine
Gelatin
Gelatin
Fish Sauce
Fish Sauce
Desiccated Coconut
Desiccated Coconut
Cranberry Sauce
Cranberry Sauce
Cornflour
Cornflour
Cognac
Cognac
Coconut Water
Coconut Water
Coconut Milk
Coconut Milk
Cocoa
Cocoa
Tea
Tea
Brown Sauce
Brown Sauce
Baking Soda
Baking Soda
Tofu
Tofu
Baking Powder
Baking Powder
Arrowroot
Arrowroot
Egg
Egg
Alum
Alum
Marzipan
Marzipan
Ajinomoto
Ajinomoto
Agar
Agar
Agar
Agar
Ajinomoto
Ajinomoto
stdout
['Parmesan Cheese\n', 'Vinaigrette\n', 'Aniseed\n', 'Dried Fruit\n', 'Hoisin Sauce\n']