Recent: Mountfield sp454?

Mend > Desktop PCs

Mend Code Work Help

Why doesn't this code work?

I don't understand why this code doesn't work, it is from python and I have been trying to debug it for an hour! Can someone help?

print "Wlecome to Talk or Argue"
print "Type in the correct information below as prompted"

name = raw_input("Whats your name? " "")




age = raw_input("How old are you? " "")




friend = raw_input("What would you like your friend's name to be? " "")




talkOrArgue = raw_input("Would you like to talk or argue? " "")



ready = raw_input("Are you ready? Yes or No? " "")

proceed = "yes" or "Yes" or "YES" or "yES" or "yEs"

if ready == proceed:
print "You are ready"
print "You're name is", name
print "You are", age, "years old"
print "You're friend's name is", friend
print "And you are going to", talkOrArgue




argue = "Argue" or "argue"

talk = "Talk" or "talk"

if talkOrArgue == talk:
print "Well you are one of the only talkative ones"
else:
print "Wow, you are arguementative."

Roberto
December 2013
As an aside, most programing languages have something to convert a literal string to all lower or upper case.
Usualy, it's something like touper and tolower.
Using that would greatly simplify your code, and maybe solve your problem.

To cover all permutations, this statement:
proceed = "yes" or "Yes" or "YES" or "yES" or "yEs"
would realy need 8 permutations, not only 5, but only a single "yes" or "YES" after converting to all lower or upper case.

Electro
December 2013
This is not the correct place to ask.

Try in Software|Application devlopment OR on a forum dedicated to Python programming.
Take a look at python.org.

Did you try here: http://python.org/community/

Electro
December 2013

Automatic Answer

We may have found other answers which could help you.

Click here for Code Work Help

Related Questions ...

Mend nissan radio message
1

Nissan Juke Radio Locked?

Hi, I have a Nissan Juke 2016 with a Nissan (Visteon) radio which is now locked as the dealer had tried to ... [Read more]
Mend keypad replacement code
1

Reset a newly installed replacement key pad? 9827 ?

please can you help!!! Just purchased an old key pad as a replacement. I don't have the old code so how can I ... [Read more]
Mend dishwasher fault code kenwood
1

how do i tell what the fault code means?

kenwood table top dishwasher, wont work, displaying E2 fault code, can anyone help please, thanks.
Mend start battery flashing
1

How can I fix my Renault Megane Authentique?

My Renault megane won't start. (2002) the battery was so dead radio code came on and flashing red light was of... [Read more]
Mend security system reset
1

an s&k 238 alarm reset to default codes ?

hi there i have been looking online for help but all i can seem to find is people bashing this i picked it up ... [Read more]
Mend boiler heating fault code
1

Fault code e.133?

Hello there I've put a new roof outside my house and I've had to move the flu as it would have been inside the... [Read more]
Mend sensors system fault
1

Alarm keeps going off every few minutes?

I have the 9495A and its been faultless for a long time now for some reason I cant reset it. If I just enter ... [Read more]
Mend boiler error code PCB
2

f7 error code-no heating/hot water?

Hope someone can help. My Worcester rd532i condensing boiler was working perfectly fine for year, then 1 day t... [Read more]
Mend How to mend it?
1

Ford 8340 error code E63 & E93 ?

I get these two error messages and my hydraulic on te lifting rods behind does not work ? Please help me ? Ki... [Read more]
Mend scantronic 9800 alarm
7

Scantronic 9800 alarm?

I was away recently and left my Son in the house. At around 4 in the morning the alarm set off with the inter... [Read more]
Mend power reconnect tamper
1

Why, after reconnecting power, is our key pad not accepting the code?

After reconnecting the consumer unit does the Texecom Veritas alarm will not work? We have reconnected the in... [Read more]
Mend Ford Mondeo Car Stereo Unlock Code
1

How to unlock a ford Mondeo Car stereo?

Hi My car recently had work done to it and now my stereo's asking for a code? The model number is V063476. it... [Read more]
Mend security system fault
1

Scantronic 9454 - tamp/fault/service?

Hi Just moved into a new house and when electrician was installing a new consumer panel, he removed the fuse ... [Read more]
Mend accenta light mini
3

Accenta 8 alarm tamper light?

30/06/14 Hi, please can anyone help I have a ADE Accenta 8 alarm mini, on the keypad it says Accenta+. ... [Read more]
Mend boiler heating fault code
1

How can I get my water and heating to work?

I have a ideal logic combi 24 boiler with a fault showing code f1, I know this is the pressure, I've turned va... [Read more]

How to mend ...

Find out how to mend just about anything howtomendit.com for free repair help, information and advice.
Mend Desktop PCs ...