Timeline for Make it look like I'm working
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 11, 2014 at 14:14 | comment | added | daviewales | Also, you can replace your randrange stuff with random.choice(). (e.g. print "%s %s %s" % (random.choice(verbs), random.choice(nouns), random.choice(adjectives)). | |
| Jun 11, 2014 at 14:13 | comment | added | Luke | Thanks, @daviewales. Python isn't usually my language of choice. | |
| Jun 11, 2014 at 14:09 | comment | added | daviewales | You're doing a lot of odd things there @Luke. I assume you are trying to print '. . .' with a delay between each dot. However, due to the way print buffers, they all print at once. Instead, try sys.stdout.write('.') followed by sys.stdout.flush(). | |
| Jun 11, 2014 at 13:58 | comment | added | Mathlight | @daviewales, that was indeed the problem. Now the program is running fine... | |
| Jun 11, 2014 at 13:58 | comment | added | Mathlight | @luke, It's working now. And i'm impressed ^_^ | |
| Jun 11, 2014 at 13:57 | comment | added | Luke | @Mathlight prepare to be underwhelmed. :P | |
| Jun 11, 2014 at 13:56 | comment | added | Mathlight | @Luke I've just installed Python 3.4.1 for Windows. I can't program in Python, but i'm interested in your little program... | |
| Jun 11, 2014 at 13:56 | comment | added | Luke | @daviewales ninja'd :P | |
| Jun 11, 2014 at 13:55 | comment | added | Luke | @Mathlight try using parentheses on the print statements. IIRC those are mandatory in Python 3.3. | |
| Jun 11, 2014 at 13:55 | comment | added | daviewales | Maybe you're using Python 3? Try adding parentheses around the print statements like this: print( ... ). | |
| Jun 11, 2014 at 13:53 | comment | added | Luke | What version of Python are you using? This works in Python 2.7 but there are differences in, say, 3.3 which might mean it doesn't compile. | |
| Jun 11, 2014 at 12:30 | history | edited | avall | CC BY-SA 3.0 | syntax highlighting added |
| Jun 11, 2014 at 12:22 | comment | added | Mathlight | I get an invalid syntax at the second double quote of this line: print "%s %s" % (verbs[one], nouns[two]),. I've never programmed in Python before, so maybe it's my fault, but i can't think of what the problem could be... | |
| Jun 11, 2014 at 11:47 | review | First posts | |||
| Jun 11, 2014 at 12:30 | |||||
| Jun 11, 2014 at 11:29 | history | answered | Luke | CC BY-SA 3.0 |