Clean up Matt's drunken coding#10
Clean up Matt's drunken coding#10Adam-Hoelscher wants to merge 1 commit intostandupmaths:masterfrom Adam-Hoelscher:patch-1
Conversation
added shebang replaced C-style looping with pythonic looping put in version checking so it runs in python3 also added doc strings poked fun at Matt, even though I'm actually really jealous: I need more friends who want to sit around a pub and write python with me on random nights
|
You could also use randint instead of randrange and save a +1 offset. Also I haven't tried but I think you need to import the print function from future if you want to use it in Python 2🤔 |
Matt's original code was written for Python2; it's why he manually built a tab-delimited string for printing |
|
@Adam-Hoelscher, @septatrix is saying that you should add a @septatrix, just tested it, the print statement at the bottom works on Python 2. |
This doesn't sound like a request for Python 3 support to me |
|
Yes you are right but I thought you had to include said statement to use the |
added shebang
replaced C-style looping with pythonic looping
put in version checking so it runs in python3 also
added doc strings
poked fun at Matt, even though I'm actually really jealous: I need more friends who want to sit around a pub and write python with me on random nights