Kernel: Python 3
In [1]:
In [11]:
In [12]:
In [22]:
In [29]:
o
x
y
g
e
n
In [32]:
Now at o
Vowels: 5
In [33]:
Vowels: 5
In [35]:
1
2
3
In [39]:
125
125
In [40]:
i= 0 , x= 1
i= 1 , x= 2
i= 2 , x= 3
In [42]:
97
In [43]:
odds are [1, 3, 5, 7]
In [44]:
first odd 1
In [46]:
second to last odd 5
In [47]:
1
3
5
7
In [48]:
names are ['Curie', 'Darwing', 'Turing']
In [49]:
In [50]:
names are now ['Curie', 'Darwin', 'Turing']
In [52]:
In [53]:
-----------------------------------------
TypeErrorTraceback (most recent call last)
<ipython-input-53-a52eec4d30d4> in <module>()
----> 1 name[3] = "w"
TypeError: 'str' object does not support item assignment
In [56]:
my salsa ['hot peppers', 'onions', 'cilantro', 'tomatoes']
In [57]:
original salsa ['peppers', 'onions', 'cilantro', 'tomatoes']
In [58]:
['pepper', 'zucchini', 'onion']
In [59]:
[['pepper', 'zucchini', 'onion']]
In [60]:
pepper
In [61]:
[1, 2.0, 'ABC', [1, 'D']]
In [63]:
['more pepper', 2.0, 'ABC', [1, 'D']]
In [64]:
['more pepper', 2.0, 'ABC', [1, 'D'], 'append this']
In [65]:
In [66]:
['more pepper', 2.0, [1, 'D'], 'append this']
In [67]:
['append this', [1, 'D'], 2.0, 'more pepper']
In [68]:
['append this', [1, 'D'], 2.0]
In [71]:
primes are [1, 3, 5, 7, 2]
In [72]:
odds are [1, 3, 5, 7]
In [73]:
he
In [74]:
['h', 'e', 'l', 'l', 'o']
In [75]:
hello
In [82]:
2013
[['chlorine', 'Cl'], ['bromine', 'Br'], ['iodine', 'I'], ['astatine', 'At']]
In [90]:
/home/jule/proj/stim
In [83]:
In [95]:
In [102]:
In [105]:
In [106]:
not greater
In [108]:
?
In [111]:
one of them is true (or both)
In [119]:
This data has suspicious maxima
In [123]:
not (empty string) is true
word is true
non-empty list is true
-one is true
In [126]:
True
In [127]:
True
In [136]:
False
In [137]:
In [139]:
freezing point of water 0.0 C
boiling point of water 100.0 C
In [156]:
In [149]:
freezing point of water 273.15 K
In [157]:
In [158]:
freezing point of water 273.15 K
In [170]:
This data has suspicious maxima
This data has suspicious maxima
Minima add up to 0
This data has suspicious maxima
This data has suspicious maxima
This data has suspicious maxima
This data has suspicious maxima
Minima add up to 0
This data has suspicious maxima
This data has suspicious maxima
Minima add up to 0
This data has suspicious maxima
In [171]:
Help on function plot_inflammation in module __main__:
plot_inflammation(f)
Plot the averages, maxima, and minima of the columns
in the file called f.
In [ ]: