(Actually linux automation still requires shell scripting. Perl and python are both useful additions.)
You can easily install py on windows. Linux has it pre-installed. You can then write a script in any text editor and test-run, without compilation. On windows the bundled IDLE tool is optional but even easier. For the ECT cycle – see https://stackoverflow.com/questions/6513967/running-python-script-from-idle-on-windows-7-64-bit
I actually find some inconveniences — IDLE uses alt-p to get previous command. Also copy-paste doesn’t work at all. The python command-line in Windows is better!
(Ashish please feel free to add to this list) For coding tests, a beginner would need to learn
- · String common operations. Regex not needed since many developers aren’t familiar with it
- · list and dict data structures and common operations. A “Set” may be useful occasionally. Tuple not needed.
- Define simple functions with multiple return values. Recursion is frequently coding-tested.
- · if/elif/else; while loop with beak and next
- · for-each loop is more useful in coding test, esp. iterating list, dict, string, range(), file content
- · range() and xrange() function – frequently needed in coding test
- “in” operator on string, list, dict
- check 2 object have same address
- · No need to handle exceptions
- · No need to create classes
- I think “struct-type” classes with nothing but data fields are useful in coding tests, but not yet needed in my experience.
- · No need to learn OO features
- · No need to use list comprehension and generator expressions, though very useful features of python
- · No need to use lambda, map()/reduce()/filter()/zip(), though essential for functional programming
- · No need to use import os and sys modules or open files, which are essential for practical automation scripts