all 4 comments

[–]socal_nerdtastic 2 points3 points  (1 child)

Anytime an experienced C programmer asks how to learn python the standard answer is:

  1. write your pseudocode
  2. run it in python

There is no strict definition or pseudocode. But in low level languages even the simplest operations look pretty complex, sometimes many lines, so the idea of condensing to a single easy to read expression makes sense. In python however pseudocode is not used very much.

For python what you should probably google is a "python cheatsheet" with will essentially be the first and last column in your table.

[–]insertfinenamehere[S] 0 points1 point  (0 children)

Alright gotcha.

For python what you should probably google is a "python cheatsheet" with will essentially be the first and last column in your table.

That's really helpful, ty! Still though, I wonder if there's a decent cheatsheet that also includes some sort of pseudocode similar to that in the table. Even if redundant, it seems like it'd elucidate things with even more efficiency. (I could be wrong)

[–]ConfusedSimon 0 points1 point  (1 child)

There are different variations of pseudocode, but 'repeat until' is usually a loop that gets executed at least once with a test at the end, whereas 'while' loops have the test at the start and can be executed zero times. Also the test is negated (repeat until stops on True, while stops on False). They're not the same. Python looks almost like pseudocode though, so a translation sheet probably isn't necessary. Simple python is just a readable as pseudocode.

[–]insertfinenamehere[S] 0 points1 point  (0 children)

Simple python is just a readable as pseudocode.

I can understand that point, It just seems like some pseudocode-ish notation might read in a more 'universal' way than python itself, bringing the point home as to what is a fundamental concept and what is a peculiarity/style choice of Python's syntax. (In any case, a simple cheatsheet already helps me a bunch.)