Pranay Kothapalli’s Reviews > Automate the Boring Stuff with Python: Practical Programming for Total Beginners > Status Update

Pranay Kothapalli
Pranay Kothapalli is on page 87 of 479
'in' and 'not in' operators
a = [1,2,3,4,5]
5 in a
>>>True
10 not in a
>>>True
Jun 09, 2016 10:15PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners

flag

Pranay’s Previous Updates

Pranay Kothapalli
Pranay Kothapalli is on page 173 of 479
TODO : regex
Jun 12, 2016 11:47PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 144 of 479
Jun 12, 2016 11:10PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 123 of 479
Jun 12, 2016 10:42PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 98 of 479
Js Arrays = Python Arrays, assignments to an array are references, not copies.

You need to create an entirely new array if you need to duplicate it(Shallow/Deep copy).
Jun 12, 2016 09:33PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 96 of 479
Tuples == Arrays, but immutable!
Jun 12, 2016 09:28PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 94 of 479
So, the similarity between Python an JS is that the strings are immutable in the two languages.
Jun 12, 2016 09:25PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 87 of 479
The Multiple Assignment Trick
The multiple assignment trick is a shortcut that lets you assign multiple vari-
ables with the values in a list in one line of code. So instead of doing this:
>>>
>>>
>>>
>>>
cat = ['fat', 'black', 'loud']
size = cat[0]
color = cat[1]
disposition = cat[2]
you could type this line of code:
>>> cat = ['fat', 'black', 'loud']
>>> size, color, disposition = cat
Jun 09, 2016 10:17PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 79 of 479
Jun 09, 2016 09:58PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


Pranay Kothapalli
Pranay Kothapalli is on page 61 of 479
Jun 09, 2016 09:33PM
Automate the Boring Stuff with Python: Practical Programming for Total Beginners


No comments have been added yet.