on-internet
← Community

How to Print Variables Alongside other Variables? -Python

Stack Overflow ·

I was working on something that would generate random messages from your input, for example, it would ask you for a few names, and then using the random function, it would choose a random first name from your input, a random sentence found in the sentence_list list, and a random second name from the input. But I can't get the variables to print. Here is the full script: import random #names: Levo Chevo Zevo Nevo name_list = input("What are the names? (Seperate with spaces)").split() name_1 = (name_list[random.randint(1, 4)]) sentence_list = ["will marry", "will kill", "will kiss", "will propos

Comments

Sign in or sign up to comment and upvote.

No comments yet.