Python 2 hour intro/Handout: Difference between revisions
Content added Content deleted
imported>Jesstess (Created page with "==Numbers: integers and floats== * Integers don't have a decimal place. * Floats have a decimal place. * Math mostly works the way it does on a calculator, and you can use pa...") |
imported>Jesstess No edit summary |
||
Line 256:
Alice starts with a vowel.
Ellen starts with a vowel.</pre>
== Useful functions related to lists and for loops ==
Line 272 ⟶ 261:
==== sorting lists ====
Use <code>
<pre>
>>> names = ["Eliza", "Joe", "Henry", "Harriet", "Wanda", "Pat"]
>>>
['Eliza', 'Harriet', 'Henry', 'Joe', 'Pat', 'Wanda']
</pre>
|