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 PointsNeed help... I am working in workspaces.
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']
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']
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', 'Sabchez', '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']
B_Names = (random.choice(B_Name))+" "+(random.choice(L_Name))
G_Names = (random.choice(G_Name))+" "+(random.choice(L_Name))
if random.random() > 0.1:
print(B_Names, "is now dating", G_Names+"!!!")
else:
try:
if random.random() < 0.5:
print(B_Names, "is now dating", B_Names+"!!!")
else:
print(G_Names, "is now dating", G_Names+"!!!")
2 Answers

Steven Parker
242,796 PointsIf you have a "try", you would also need an "except". But are you sure you need it?

Josh Klink
2,330 PointsOHH HAA... Perfect, thanks so much, once again.

Josh Klink
2,330 PointsPS-I only have 19 lines!!!

Steven Parker
242,796 PointsIt got EOF (End Of File) while it was looking for line 20.
Josh Klink
2,330 PointsJosh Klink
2,330 Points