Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

A Personal Achievement

Name: Anonymous 2006-10-15 17:47

Congratulate me, folks! I just wrote my first program.

name = raw_input("Name: ")
print "Hello",name,"!"
lastname = raw_input("And your Last Name: ")
print "I'm very pleased to meet you,",name, lastname,"!"
middleinitial = raw_input("Do you have a Middle Initial? ")
print "So your full name is:",name,middleinitial,lastname,"?"
favnum = input("Do you have a Favorite Number? ")
favnum2 = input("Can you give me a Random Number? ")
print favnum*favnum2,"is the product of multiplying those numbers together! Isn't math fun?"

Not bad for a first attempt, eh?

Name: Anonymous 2006-10-15 18:29

Do you have a Middle Initial?
No.

Name: Anonymous 2006-10-15 23:10

Sigh- I just spent an hour messing with it, I'll post back when I understand else and while statements better.

Name: Anonymous 2006-10-16 11:33

>>2
O.K., What do you think of this one?

firstname = raw_input("Tell me your First Name: ")
init = raw_input("Do you have a Middle Name? (Y/N) ")
if init != ("Y") :
        print "O.K.",firstname
elif init is ("Y") :
    middle = raw_input("Please tell me your Middle Name: ")
    print "So your Name thus far is: ",firstname,middle
if init != ("Y") :
    middle = ("")
lastname = raw_input("Tell me your Last Name: ")
print "So your Full Name is: ",firstname,middle,lastname

Name: Anonymous 2006-10-16 11:41

>>4
It's not __Pythonic__, thus it fails.

If you want it to be Pythonic (you don't, go learn Ruby instead), sprinkle underscores randomly and use that horrid comment thingy.

Name: Anonymous 2006-10-16 11:51

>>5
I haven't seen anything in the docs I'm looking at yet that says to sprinkle anything randomly. And since this isn't a vastly complicated piece of software I see no need fot # marks in it.

Also, define Pythonic, please?

Name: Anonymous 2006-10-16 11:53

>>1
You're now good enough to fix the GIMP's interface.

Name: Anonymous 2006-10-16 13:08

>>6
A common neologism in the Python community is pythonic, which can have a wide range of meanings related to program style. To say that a piece of code is pythonic is to say that it uses Python idioms well; that it is natural or shows fluency in the language. Likewise, to say of an interface or language feature that it is pythonic is to say that it works well with Python idioms; that its use meshes well with the rest of the language.

In contrast, a mark of unpythonic code is that it attempts to "write C++ (or Lisp, or Perl) code in Python"—that is, provides a rough transcription rather than an idiomatic translation of forms from another language. The concept of pythonicity is tightly bound to Python's minimalist philosophy of readability—unreadable code or incomprehensible idioms are unpythonic.

Users and admirers of Python—most especially those considered knowledgeable or experienced—are often referred to as Pythonists, Pythonistas, and Pythoneers.

Name: Anonymous 2006-10-16 13:42

Boy, that Pythonic thing sounds gay.

Name: Anonymous 2006-10-16 14:45

Name: Evangeline Athanasia Katherine McDowell
And your Last Name: oops

Name: Anonymous 2006-10-16 14:51

>>5
The horrid comment thingy is actually good.

>>7
I lol'd

>>9
Go back to your Perl's $%&(_=:\\\~.+\[]|\.*

Name: Anonymous 2006-10-16 16:01

>>11
You forgot @, # (yes, it's an operator and a comment), and many more I don't know about, some that I probably can't type without entering unicode codes directly.

Name: Anonymous 2006-10-16 20:32

Coming soon in Perl 6: ☻♥♣₧÷¬♀‰±€↓™¥þ←↓♠☻♥§♦◄♫¶▒♂Þ≤▲◄►≥≤▼▲◄▓♥☺♦♫♂ ®™[↑þ↕™¥

Name: Anonymous 2006-10-16 21:36

>>13

   /)/)
.  (^-^)
  o(u u)

Name: Anonymous 2006-10-17 1:30

>>13 QFT

Name: Anonymous 2006-10-17 20:59

Ruby for win

Name: Anonymous 2006-10-17 22:18

Ruby can't handle >>14 's message ;)

Name: Anonymous 2006-10-18 2:45

>>17
faggotry = <<FAG
   /)/)
.  (^-^)
  o(u u)
FAG

puts faggotry

Name: Anonymous 2009-01-14 12:37

LISP

Name: Anonymous 2010-12-17 1:40

FOLLOW THE NEW GNAA TWITTER AT http://twitter.com/Gary_Niger

Name: Anonymous 2011-01-31 19:48

<-- check em dubz

Name: Anonymous 2011-02-04 14:42

Name: Sgt.Kabu㶹ྷkiman髽巰 2012-05-28 20:29

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List