Just finished the section on using builtins. I fudged a little as in Python I used string slicing instead of a substring function as in Java. This is kind of a cool feature in Python array handling. For example to pickup the first character in a person's name in Java I used
String empEMail = empFName.substring(0,1);
Whereas in Python the code was
empEMail = empFName[:1]
Which means everything before the character at index 1.
Click on the image below to see an expanded view of the three columns on box.com with pseudocode, Java and Python.
No comments:
Post a Comment