Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first program
#18
(08-13-2010, 07:38 PM)ReaLiTy Wrote: thanks titan

but what does 'break' mean?

In my method I just set the variable as true.
The way he did it was the same thing except just stopping it from looping again.

Also replace the part that asks for input with this.
Code:
first = raw_input("\nPlease enter your gender: ").lower()

You set it where if the user inputs MALE it will say it's not a gender.
Reply


Messages In This Thread
My first program - by Reality - 08-06-2010, 01:06 AM
RE: My first program - by Reality - 08-06-2010, 06:31 AM
RE: My first program - by Daniel Faraday - 08-09-2010, 09:56 PM
RE: My first program - by Kyuubi - 08-09-2010, 09:38 PM
RE: My first program - by Reality - 08-09-2010, 10:06 PM
RE: My first program - by Daniel Faraday - 08-09-2010, 10:17 PM
RE: My first program - by Reality - 08-09-2010, 10:19 PM
RE: My first program - by XACTLYSIN - 08-09-2010, 11:08 PM
RE: My first program - by Reality - 08-11-2010, 01:23 PM
RE: My first program - by Daniel Faraday - 08-11-2010, 01:45 PM
RE: My first program - by Reality - 08-11-2010, 02:07 PM
RE: My first program - by Daniel Faraday - 08-11-2010, 02:10 PM
RE: My first program - by Deities - 08-12-2010, 07:23 AM
RE: My first program - by Reality - 08-12-2010, 01:16 PM
RE: My first program - by ucrazii - 08-13-2010, 10:12 AM
RE: My first program - by xerotic - 08-13-2010, 10:50 AM
RE: My first program - by Reality - 08-13-2010, 07:38 PM
RE: My first program - by Daniel Faraday - 08-13-2010, 07:51 PM
RE: My first program - by Reality - 08-13-2010, 07:57 PM
RE: My first program - by Daniel Faraday - 08-13-2010, 07:58 PM
RE: My first program - by Reality - 08-13-2010, 08:02 PM
RE: My first program - by Daniel Faraday - 08-13-2010, 08:08 PM
RE: My first program - by Reality - 08-13-2010, 08:30 PM
RE: My first program - by Daniel Faraday - 08-13-2010, 08:49 PM
RE: My first program - by Reality - 08-13-2010, 08:51 PM
RE: My first program - by Bursihido - 12-13-2010, 11:01 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)