12-9+7-6


make font on form bigger

make gif continuos

make one continuos gif 

Change text to "import random" and make gif continuos

count_zero=0
count_one=0
def update_counts(player_input):
  global count_zero, count_one 
  if player_input == 0:
    count_zero = count_zero + 1
  else:
    count_one = count_one + 1
[
]
0,1

Element/Item

count_zero= player_inputs_list.count(0)
count_one= player_inputs_list.count(1)

Initialize the counter

#Create a variable 'counter' to keep a count of the number of inputs
counter=0

#Create a while loop to run till value of counter is 5
while (counter<5):
  
  #Take the player's input using `input()` function
  player_input=int(input("Enter 0 or 1: "))
  
  #Append 'player_input' to 'player_inputs_list'
  player_inputs_list.append(player_input)
  
  #Print 'player_inputs_list'
  print(player_inputs_list)
  
  #Increment value of 'counter' by 1
  counter+=1

Check the value of counter

Increment the counter

Gif showing increasing portions

Made with Slides.com