can you tell me.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

can you tell me....

can you tell me how to make somthing that prints random stuff???

8th Apr 2021, 11:29 AM
A n O n Y m O u S
A n O n Y m O u S - avatar
4 Answers
+ 4
First try then ask!
8th Apr 2021, 11:58 AM
Matias
Matias - avatar
0
wow wee guys you are geniuses
8th Apr 2021, 7:32 PM
A n O n Y m O u S
A n O n Y m O u S - avatar
0
Certainly! If you want to create a program that prints random stuff, you can use a programming language like Python. Here's a simple example using Python: import random def print_random_stuff(): stuff_list = ["apple", "banana", "carrot", "dog", "elephant"] random_stuff = random.choice(stuff_list) print(random_stuff) print_random_stuff() In this example, we import the random module, which allows us to generate random values. We define https://www.tellhappystar.org/ a function called print_random_stuff(), which selects a random item from a list of stuff (e.g., fruits, animals) using the random.choice() function. Finally, we print the randomly selected stuff. You can modify the stuff_list with any items you want, and the program will print a random item from that list each time you run it. Please note that this is a basic example, and you can customize it further based on your specific requirements.
17th May 2023, 11:12 AM
Susan Braun
0
To create a simple program that prints random stuff in Python. 1. Import the Random Module 2. Create a List 3. Use random.choice() 4. Print Random Output import random random_phrases = ["Hello!", "How are you?", "Coding is fun!", "Random stuff!"] for _ in range(5): # Print 5 random phrases random_output = random.choice(random_phrases) print(random_output) Visit here: https://www.yourtexasbenefits.bid/
29th Aug 2023, 10:19 AM
Kieran Wilson