I want to write random numbers between one and zero, eighty times. This should write 010100001010100101001010100101010.... whatever (80 times) into a txt file, but instead I get one single number. Why does
from random import random
bro = int(input('Amount: '))
for i in range(bro):
open('e.txt', 'w').write(str(round(random())))
not work?