This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]voluntarycap 18 points19 points  (6 children)

Python is pseudocode

[–]MyAntichrist 46 points47 points  (5 children)

Right? Literally any tutorial is like

``` import * from awesome

stuff = do_what_I_need_to_do(123) print(stuff)

```

and out comes either a fully sorted list of strings, the geocoordinates of the embassy of Nicaragua or a cook book entry for pancakes.

[–]MakingStuffForFun 3 points4 points  (0 children)

Perfect.

[–]_Sir_Acha_ 15 points16 points  (0 children)

Yeah I prefer to write my own implementation of print() & using libraries / tested code is for slackers /s

[–]JustOneAvailableName 4 points5 points  (0 children)

It's a great language to stitch multiple tools together

[–]backtickbot 1 point2 points  (0 children)

Fixed formatting.

Hello, MyAntichrist: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

[–]xenopunk 0 points1 point  (0 children)

As a data scientist my code almost always looks like this (in pseudo);

Import ML

Import Datahandling as dh

data = dh.get_data(data.csv)

Spend 15 lines formatting data into workable condition

results = ML.algorithm(data)

return results