Most popular tags

301 questions

410 answers

70 comments

310 users

Most active Members
this week:

    Why does it say that 'you' is not defined?

    +2 votes
    # friend lives closer
    else:
        print("Your friend lives",distance2-distance1,"mile(s)further away than",you)
    asked Oct 6, 2016 in Python by 14murphyj (200 points)

    1 Answer

    +3 votes
     
    Best answer
    You haven't added "you" as an input, try doing, you = input("What is your name") then "you" should be defined
    answered Oct 6, 2016 by 14settlea (570 points)
    selected Oct 6, 2016 by 14murphyj
    thankin ya :)
    Welcome to Selby Computing Q&A, where you can ask questions and receive answers from other students in Computer Science.
    ...