Python Forum
Don't Understand what I am doing wrong : Can someone help?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Don't Understand what I am doing wrong : Can someone help?
#4
First of all, Larz pointed out that you need to post code in python tags, and gave you a link on how to do it. Fix that.

Second, it's because you are only testing 'yes'. 'yes' is True, because all non-empty strings are True. You need to specify that you are testing to see if user is yes (if user == 'yes':), otherwise the computer has no idea what youare trying to do.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Don't Understand what I am doing wrong : Can someone help? - by ichabod801 - Dec-24-2018, 01:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Am I wrong or is Udemy wrong? String Slicing! Mavoz 3 2,690 Nov-05-2022, 11:33 AM
Last Post: Mavoz
  python gives wrong string length and wrong character thienson30 2 3,067 Oct-15-2019, 08:54 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020