but isn' mathematically random human will almost never write down streak of six heads or six tails in roweven though it is highly likely to happen in truly random coin flips humans are predictably bad at being random write program to find out how often streak of six heads or streak of six tails comes up in randomly generated list of heads and tails your program breaks up the experiment into two partsthe first part generates list of randomly selected 'headsand 'tailsvaluesand the second part checks if there is streak in it put all of this code in loop that repeats the experiment , times so we can find out what percentage of the coin flips contains streak of six heads or tails in row as hintthe function call random randint( will return value of the time and value the other of the time you can start with the following templateimport random numberofstreaks for experimentnumber in range( )code that creates list of 'headsor 'tailsvalues code that checks if there is streak of heads or tails in row print('chance of streak% %%(numberofstreaks )of coursethis is only an estimatebut , is decent sample size some knowledge of mathematics could give you the exact answer and save you the trouble of writing programbut programmers are notoriously bad at math character picture grid say you have list of lists where each value in the inner lists is one-character stringlike thisgrid [['''''']['' '' ''''][' '' '' '' '''][' '' '' '' '' '']['' '' '' '' '' '][' '' '' '' '' ''][' '' '' '' ''']['' '' '''']['''''']think of grid[ ][yas being the character at the xand -coordinates of "picturedrawn with text characters the ( origin is in the upperleft cornerthe -coordinates increase going rightand the -coordinates increase going down