Ask coding questions

← Back to all posts
Help me pls
Bobthagamer (0)

How do I code something that will output random lines after the user types in an input from which I have made?

cuber1515 (57)

lol, apparently according to said 13 year old if you older than 13 your bad and if your younger than guess what...your also bad, so you can only be 13 if your good

cuber1515 (57)

@Bobthagamer only for 13-year-olds to be accepted as good by him.

ruiwenge2 (525)

first make a list of different sentences, and use the random module:

import random
lines = [sentence1, sentence2, sentence3]
user = input_better("INSERT QUESTION HERE")
ruiwenge2 (525)

@Bobthagamer mark it as correct if it helped!