if the user held down on the key for longer than seconds (the value stored in movesidewaysfreq is the float then the expression time time(lastmovesidewaystime movesidewaysfreq would evaluate to true line ' condition is true if the user has both held down the arrow key and seconds has passedand in that case we should move the falling piece to the left or right even though the user hasn' pressed the arrow key again this is very useful because it would become tiresome for the player to repeatedly hit the arrow keys to get the falling piece to move over multiple spaces on the board insteadthey can just hold down an arrow key and the piece will keep moving over until they let up on the key when that happensthe code on lines to will set the moving variable to false and the condition on line will be false that is what stops the falling piece from sliding over more to demonstrate why the time time(lastmovesidewaystime movesidewaysfreq returns true after the number of seconds in movesidewaysfreq has passedrun this short programimport time waittime begin time time(while truenow time time(message '% % % (beginnow(now begin)if now begin waittimeprint(message passed wait time!'elseprint(message not yet 'time sleep( this program has an infinite loopso in order to terminate itpress ctrl- the output of this program will look something like this not yet not yet not yet not yet not yet not yet not yet not yet not yet email questions to the authoral@inventwithpython com