Size: 359
Comment:
|
Size: 362
Comment: minor cleanup
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
x=lower('Some String') | x = lower('Some String') |
Line 15: | Line 15: |
But remember - everything is an object, either is every string. | But remember: everything is an object, including every string. |
Line 17: | Line 17: |
x='Some String'.lower() | x = 'Some String'.lower() |
Comparation of simple tasks in php and python - a guide for php programmers wanting to create python applications
strtolower:
$x=strtolower('Some String'); echo $x
In Python you can do:
x = lower('Some String') print x
But remember: everything is an object, including every string.
x = 'Some String'.lower() print x