Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Josh Klink
2,330 PointsMy workspace isn't working, and I do not know what to do?
import random
B_Name = ['Josh', 'Joshua', 'Mike', 'Brad', 'Brandon', 'Robby', 'Paul', 'Dale', 'Gorge', 'Hector', 'Kyle', 'Mathew', 'Bob', 'Bobby', 'Matt', 'Jack', 'Jackson', 'Aiden', 'Aidan', 'Richard', 'Cole', 'Jadon', 'Jordan', 'Fred', 'Jeff', 'Jefferson', 'Jeffrey', 'Jim', 'Ian', 'Dave', 'Fredrick', 'Larry', 'Pat', 'Patrick', 'Wyatt', 'Nick', 'Nicholas', 'Henry', 'Albert', 'Weston', 'Taylor', 'Tanner', 'Craig', 'Joe', 'Eli', 'Elijah', 'Ezra', 'Cooper', 'Ashton', 'Jimmy', 'Micheal', 'Kaden', 'Caden', 'Ash', 'Sully', 'Brock', 'Lester', 'Carlos', 'Glenn', 'Nate', 'Nathan', 'Stewert', 'Rick', 'Charlie', 'Ben', 'Benjamin', 'Liam', 'William', 'Will', 'Luke', 'Lucas', 'James', 'Wren', 'Chuck', 'Van', 'Phillip', 'Max', 'Alex', 'Mason', 'Logan', 'Jacob', 'Ethan', 'Daniel', 'Sam', 'Samuel', 'David', 'Carter', 'Coby', 'Owen', 'Dylan', 'Aaron', 'Timmy', 'Timothy', 'Tim', 'Joseph', 'Gavin', 'Gabe', 'Gabriel', 'Julian', 'Harry', 'Harrison', 'Levi', 'Barry', 'Shaun', 'Jaun', 'Austin', 'Russel', 'Bill', 'Billy', 'Isaac', 'Tom', 'Tommy', 'Thomas', 'Robert', 'Rodger', 'Evan', 'Bailey', 'Champ', 'Markus', 'Xzavier', 'Zavier', 'Archie', 'Emmanuel', 'Deangelo', 'Jesiah', 'Decker', 'Harper', 'Terrel', 'Camden', 'Camdyn', 'Shepard', 'Creed', 'Ralph', 'Lance', 'Drew', 'Jaxx', 'Keenan', 'Skylar', 'Keagan', 'Keegan', 'Duncan', 'Troy', 'Rocky', 'Darwin', 'Ulises', 'Chad', 'Cory', 'Tristian', 'Leroy', 'Eugene', 'Toby', 'Jacoby', 'Khalid', 'Dayton', 'Gresham', 'Gordon', 'Brayan', 'Ryan', 'Rudy', 'Rodney', 'Coen', 'Kaiser', 'Thatcher', 'Yahir', 'Kalvin', 'Calvin', 'Harold', 'Fisher', 'Kelvin', 'Dominik', 'Felipe', 'Brett', 'Emory', 'Dash', 'Anders', 'Ty', 'Tyler', 'Talon', 'Ray', 'Tristen', 'Trask', 'Blue', 'DEEZ']
G_Name = ['Samantha', 'Charly', 'Denice', 'Jacklin', 'Sherry', 'Tammy', 'Amy', 'Ashley', 'Bethany', 'Britany', 'Megan', 'Dior', 'Palmer', 'Hailey', 'Olivia', 'Rosa', 'Rose', 'Lilly', 'Roxan', 'Abby', 'Martha', 'Jacky', 'Ana', 'Hannah', 'Ava', 'Carly', 'Shelly', 'Sofia', 'Sophie', 'Daisy', 'Ariana', 'Alexia', 'Payzlee', 'Pam', 'Shana', 'Stella', 'Debby', 'Debra', 'Angelina', 'Audrie', 'Ally', 'Bella', 'Ella', 'Sydney', 'Jill', 'Felisha', 'Jessica', 'Kendall', 'Blaine', 'Blare', 'Isla', 'Mason', 'Kenzie', 'McKenzie', 'Elisha', 'Magnus', 'Emery', 'Allison', 'Emily', 'Paisley', 'Reese', 'Pearl', 'Isabella', 'Charlotte', 'Mia', 'Amelia', 'Emma', 'Jenny', 'Jen', 'Jennifer', 'Abigal', 'Evelyn', 'Harper', 'Mila', 'Avery', 'Scarlett', 'Victora', 'Grace', 'Luna', 'Chloe', 'Riley', 'Layla', 'Madison', 'Lily', 'Lillian', 'Zoey', 'Aubrey', 'Savannah', 'Hazel', 'Zoe', 'Violet', 'Audrey', 'Brooklyn', 'Lucy', 'Claire', 'Skyar', 'Anna', 'Kennedy', 'Willow', 'Emilia', 'Naomi', 'Sarah', 'Ariana', 'Elena', 'Alice', 'Ruby', 'Serenity', 'Eva', 'Autumn', 'Valentina', 'Ivy', 'Sadie', 'Piper', 'Alexa', 'Josephine', 'Vivian', 'Payton', 'Peyton', 'Clara', 'Rylee', 'Hadley', 'Mackenzie', 'Faith', 'Alexandra', 'Margerat', 'DEEZ']
L_Name = ['Klink', 'Doster', 'Focker', 'Foster', 'Harry', 'Ship', 'Ramirez', 'Lester', 'Deag', 'Dellar', 'Montag', 'Montgomery', 'Wilson', 'Carter', 'Burleson', 'Johnson', 'Smith', 'White', 'Morton', 'Bell', 'McDonald', 'Marten', 'Moore', 'Holmes', 'Homes', 'Brooks', 'Peters', 'Miller', 'Rodgers', 'Cox', 'Bennett', 'Wolfe', 'Morrison', 'Morris', 'Hunt', 'Sham', 'Woods', 'Brady', 'Preston', 'Luck', 'Westbrooks', 'Jones', 'Cook', 'Williams', 'Davis', 'Brown', 'Hall', 'Allen', 'Taylor', 'Anderson', 'Martin', 'Thompson', 'Garcia', 'Robinson', 'Clark', 'Lewis', 'Lee', 'Walker', 'Young', 'Hernandez', 'King', 'Wright', 'Lopez', 'Hill', 'Scott', 'Green', 'Adams', 'Baker', 'Gonzalez', 'Nelson', 'Roberts', 'Sherman', 'Turner', 'Phllips', 'Campbell', 'Gilbert', 'Jenkins', 'Parker', 'Evans', 'Edwards', 'Collins', 'Stewart', 'Sanchez', 'Reed', 'Morgan', 'Murphy', 'Bailey', 'Richardson', 'Howard', 'Ward', 'Gray', 'Peterson', 'Watson', 'Sanders', 'Price', 'Barnes', 'Champ', 'Perry', 'Long', 'Powell', 'Flores', 'Washington', 'Butler', 'Simmons', 'Bryant', 'Griffin', 'Hayes', 'Lowe', 'Posten', 'Poston', 'Madden', 'Melvin', 'Tanley', 'Kellen', 'Crosby', 'Cosby', 'Baylor', 'NUTZ']
B_Names = (random.choice(B_Name))+" "+(random.choice(L_Name))
B2_Names = (random.choice(B_Name))+" "+(random.choice(L_Name))
G_Names = (random.choice(G_Name))+" "+(random.choice(L_Name))
G2_Names = (random.choice(G_Name))+" "+(random.choice(L_Name))
Proba = random.choice("pulling your hair!!!", "crumpling your paper!!!")
bility = random.choice("telling on you!!!", "taking your lunch money!!!")
if random.random() > 0.5:
print("A kid at your school named "+random.choice(B_Names, G_Names)+" is bullying you and keeps on "+random.choice(Proba, bility))
print("WHAT WILL YOU DO?")
print("1. Ignore")
print("2. Tell Principal "+random.choice(B_Names, G_Names))
print("3. Fight That Bastard")
print("4. Tell Them To Stop")
print("-")*10
bully = input("YOUR CHOICE")
else:
print("POOP")
TypeError: choice() takes 2 positional arguments but 3 were given
2 Answers

Chris Freeman
Treehouse Moderator 68,468 PointsYou have two error types.
-
random.choice()
takes a single sequence as it's argument.
# replace
random.choice("pulling your hair!!!", "crumpling your paper!!!")
random.choice("telling on you!!!", "taking your lunch money!!!")
random.choice(B_Names, G_Names)
random.choice(Proba, bility))
random.choice(B2_Names, G2_Names))
# with
random.choice(["pulling your hair!!!", "crumpling your paper!!!"])
random.choice(["telling on you!!!", "taking your lunch money!!!"])
random.choice([B_Names, G_Names])
random.choice([Proba, bility]))
random.choice([B2_Names, G2_Names]))
- multiply a character inside the print function:
print("-"*10)
Post back if you need more help. Good luck!!

Josh Klink
2,330 PointsTHANKS SO MUCH