concept start in category python
appears as: start, start

This is an excerpt from Manning's book Tiny Python Projects: Learn coding and testing with puzzles and games.
The song starts at the given
--numvalue, like 10, and needs to count down to 9, 8, 7, and so forth. How can we do that in Python? We’ve seen how to userange(start,stop)to get a list of integers that go up in value. If you give it just one number, that will be considered thestop, and it will assume0as thestart:>>> list(range(1, 5)) [1, 2, 3, 4]

This is an excerpt from Manning's book Hello World! Third Edition.
The seek() method makes Python go to whatever place in the file you tell it. The number in brackets is the number of bytes from the start of the file. So setting it to 0 takes it right back to the start of the file.




