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

General Discussion

help me with this python?

print("Requirments to use this program.")

print("1. YOU HAVE TO HAVE AT LEAST THREE FRIENDS!") print("2. YOU HAVE TO BE AT LEAST 3 YEARS OF AGE!") input("3. YOU MUST TAKE THIS SERIOUSLY!")

first_name = input('Hi, welcome to the name sort game. What is your name. ')

first_friends_name = input('Now put your frinds first initial. ')

second_friends_name = input("What is your second friends initial. ")

last_friends_name = input("Now for the third friend what is your third favorit friend's initial. ")

if first_friends_name == "a": print("Friend one.")

if second_friends_name == "a": print ("Friend two.")

if last_friends_name == "a": print("Friend three.")

if first_friends_name == "b": print("Friend one.")

if second_friends_name == "b":
  print("Friend two.")

  if last_friends_name == "b":
    print("Friend three.")

    if first_friends_name == "c":
      print ("Friend one.")

      if second_friends_name == "c":
        print("Friend two.")

        if last_friends_name == "c":
          print("Friend three.")
Steven Parker
Steven Parker
231,184 Points

When posting code, use Markdown formatting to preserve indentation.

It's also not clear what you are intending this code to do. Please describe the issue you are having with it.

And you might want to move this question to the Python topic area (instead of "General discussion").