Python Americano, cafe latte, green grape ade, and strawberry smoothie

Asked 2 years ago, Updated 2 years ago, 18 views

How do you make a code that allows you to randomly assign one of Americano, cafe latte, green grape ade, or strawberry smoothie? By Python

python

2022-09-20 14:31

1 Answers

random.choice

https://docs.python.org/3/library/random.html?highlight=choice#random.choice

import random
Golagola = random.choice("Ah", "Kara", "Chung", "Daughter")


2022-09-20 14:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.